fix reload webchannels

Origin commit data
------------------
Commit: f19cf3a8fb
Author: TangoCash <eric@loxat.de>
Date: 2024-06-02 (Sun, 02 Jun 2024)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
# Conflicts:
#	src/gui/webchannels_setup.cpp
This commit is contained in:
TangoCash
2024-06-02 14:14:58 +02:00
committed by Thilo Graf
parent 7f20e1b4f0
commit d4d6f634d2
2 changed files with 6 additions and 0 deletions

View File

@@ -304,6 +304,10 @@ int CWebChannelsSetup::Show()
g_settings.webtv_xml = webchannels;
}
webchannels_auto();
if (webradio)
CZapit::getInstance()->SetWebRadioXML(&g_settings.webradio_xml);
else
CZapit::getInstance()->SetWebTVXML(&g_settings.webtv_xml);
g_Zapit->reinitChannels();
CNeutrinoApp::getInstance()->xmltv_xml_auto_readepg();
changed = false;

View File

@@ -304,6 +304,8 @@ class CZapit : public OpenThreads::Thread
void Rezap();
std::list<std::string> *GetWebTVXML(void) { return webtv_xml; }
std::list<std::string> *GetWebRadioXML(void) { return webradio_xml; }
void SetWebTVXML(std::list<std::string> *xml) { webtv_xml = xml; }
void SetWebRadioXML(std::list<std::string> *xml) { webradio_xml = xml; }
bool getUseChannelFilter();
void setMoviePlayer(bool enable);
};