- change some hintboxes

Conflicts:
	src/neutrino.cpp

Signed-off-by: Thilo Graf <dbt@novatux.de>

I'm not enthused of this solution to misuse the CHint destructor since
commit 1cb25e7cd3 "- hintbox: add setDelay() prototype".
I think such tasks with delay impact are not the designation of
destructors and avoidable. Unless it is absolutely necessary.
Therefore, I think this is only a temporary solution.
This commit is contained in:
svenhoefer
2021-09-30 22:56:15 +02:00
committed by Thilo Graf
parent 887d2f1cb5
commit 3f34ab5877
3 changed files with 15 additions and 11 deletions

View File

@@ -91,7 +91,7 @@ int CMiscMenue::exec(CMenuTarget* parent, const std::string &actionKey)
{
printf("init extended settings menu...\n");
if(parent != NULL)
if ((parent != NULL) && (actionKey.find("epg_read_now") == std::string::npos))
parent->hide();
if(actionKey == "epgdir")
@@ -164,6 +164,7 @@ 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;
@@ -179,7 +180,6 @@ int CMiscMenue::exec(CMenuTarget* parent, const std::string &actionKey)
g_Sectionsd->readSIfromXMLTV((*it).c_str());
}
sleep(1); // small delay for very fast hardware
delete hint;
if (actionKey == "epg_read_now_usermenu")