From 14aa145cc18b97093f90f73cec24908e8c5082a3 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 8 Oct 2021 22:36:54 +0200 Subject: [PATCH] miscsettings_menu.cpp: epg_read_now, epg_read_now_usermenu implement ShowHintS --- src/gui/miscsettings_menu.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/gui/miscsettings_menu.cpp b/src/gui/miscsettings_menu.cpp index 8bee67308..efe50d3eb 100644 --- a/src/gui/miscsettings_menu.cpp +++ b/src/gui/miscsettings_menu.cpp @@ -163,25 +163,21 @@ int CMiscMenue::exec(CMenuTarget* parent, const std::string &actionKey) } else if(actionKey == "epg_read_now" || actionKey == "epg_read_now_usermenu") { - CHint *hint = new CHint(LOCALE_MISCSETTINGS_EPG_READ); - hint->setDelay(1); - hint->paint(); - struct stat my_stat; if (stat(g_settings.epg_dir.c_str(), &my_stat) == 0) { printf("Reading epg cache from %s ...\n", g_settings.epg_dir.c_str()); - g_Sectionsd->readSIfromXML(g_settings.epg_dir.c_str()); +// g_Sectionsd->readSIfromXML(g_settings.epg_dir.c_str()); + ShowHintS(LOCALE_MISCSETTINGS_EPG_READ, sigc::bind(sigc::mem_fun(g_Sectionsd, &CSectionsdClient::readSIfromXML), g_settings.epg_dir.c_str()), 1); } for (std::list::iterator it = g_settings.xmltv_xml.begin(); it != g_settings.xmltv_xml.end(); ++it) { printf("Reading xmltv epg from %s ...\n", (*it).c_str()); - g_Sectionsd->readSIfromXMLTV((*it).c_str()); +// g_Sectionsd->readSIfromXMLTV((*it).c_str()); + ShowHintS(LOCALE_MISCSETTINGS_EPG_READ, sigc::bind(sigc::mem_fun(g_Sectionsd, &CSectionsdClient::readSIfromXMLTV), (*it).c_str()), 1); } - delete hint; - if (actionKey == "epg_read_now_usermenu") return menu_return::RETURN_EXIT_ALL; else