From 714c54d0631e8377eb68225824f1fb99e0bdc004 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Tue, 14 Feb 2023 20:27:40 +0100 Subject: [PATCH] - scan-setup: auto-reload webchannels when reload channellists --- src/gui/scan_setup.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/gui/scan_setup.cpp b/src/gui/scan_setup.cpp index 35f625e90..59cf73d5e 100644 --- a/src/gui/scan_setup.cpp +++ b/src/gui/scan_setup.cpp @@ -43,6 +43,7 @@ #include #include #include +#include #include #include @@ -456,13 +457,18 @@ int CScanSetup::exec(CMenuTarget* parent, const std::string &actionKey) chb.paint(); /* save if changed, to make sure NEW/REMOVED/... flags are updated */ CServiceManager::getInstance()->SaveServices(true, true); + /* WebTV/Radio auto reload */ + CWebChannelsSetup webchannelssetup; + g_settings.webtv_xml.clear(); + webchannelssetup.webtv_xml_auto(); + g_settings.webradio_xml.clear(); + webchannelssetup.webradio_xml_auto(); /* Z->reinitChannels triggers EVT_SERVICESCHANGED and this triggers channelsInit() */ g_Zapit->reinitChannels(); chb.hide(); - CNeutrinoApp::getInstance ()->SDTreloadChannels = false; - if(file_exists(CURRENTSERVICES_XML)){ + CNeutrinoApp::getInstance()->SDTreloadChannels = false; + if (file_exists(CURRENTSERVICES_XML)) unlink(CURRENTSERVICES_XML); - } return res; } else if(actionKey == "satsetup")