mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +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_setup.h>
|
||||
#include <gui/motorcontrol.h>
|
||||
#include <gui/webchannels_setup.h>
|
||||
#include <gui/bedit/bouqueteditor_bouquets.h>
|
||||
|
||||
#include <gui/widget/hintbox.h>
|
||||
@@ -463,13 +464,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")
|
||||
|
Reference in New Issue
Block a user