mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
scan-setup: auto-reload webchannels when reload channellists
Origin commit data
------------------
Branch: ni/coolstream
Commit: 2981c207de
Author: vanhofen <vanhofen@gmx.de>
Date: 2023-02-14 (Tue, 14 Feb 2023)
Origin message was:
------------------
- scan-setup: auto-reload webchannels when reload channellists
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -43,6 +43,7 @@
|
|||||||
#include <gui/scan.h>
|
#include <gui/scan.h>
|
||||||
#include <gui/scan_setup.h>
|
#include <gui/scan_setup.h>
|
||||||
#include <gui/motorcontrol.h>
|
#include <gui/motorcontrol.h>
|
||||||
|
#include <gui/webchannels_setup.h>
|
||||||
#include <gui/bedit/bouqueteditor_bouquets.h>
|
#include <gui/bedit/bouqueteditor_bouquets.h>
|
||||||
|
|
||||||
#include <gui/widget/hintbox.h>
|
#include <gui/widget/hintbox.h>
|
||||||
@@ -463,13 +464,18 @@ int CScanSetup::exec(CMenuTarget* parent, const std::string &actionKey)
|
|||||||
chb.paint();
|
chb.paint();
|
||||||
/* save if changed, to make sure NEW/REMOVED/... flags are updated */
|
/* save if changed, to make sure NEW/REMOVED/... flags are updated */
|
||||||
CServiceManager::getInstance()->SaveServices(true, true);
|
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() */
|
/* Z->reinitChannels triggers EVT_SERVICESCHANGED and this triggers channelsInit() */
|
||||||
g_Zapit->reinitChannels();
|
g_Zapit->reinitChannels();
|
||||||
chb.hide();
|
chb.hide();
|
||||||
CNeutrinoApp::getInstance ()->SDTreloadChannels = false;
|
CNeutrinoApp::getInstance()->SDTreloadChannels = false;
|
||||||
if(file_exists(CURRENTSERVICES_XML)){
|
if (file_exists(CURRENTSERVICES_XML))
|
||||||
unlink(CURRENTSERVICES_XML);
|
unlink(CURRENTSERVICES_XML);
|
||||||
}
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
else if(actionKey == "satsetup")
|
else if(actionKey == "satsetup")
|
||||||
|
Reference in New Issue
Block a user