mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-11 07:30:57 +02:00
change some hintboxes
Origin commit data
------------------
Branch: ni/coolstream
Commit: b43da640c5
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-09-30 (Thu, 30 Sep 2021)
Origin message was:
------------------
- change some hintboxes
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -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")
|
||||
@@ -162,6 +162,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;
|
||||
@@ -177,7 +178,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")
|
||||
|
@@ -891,11 +891,13 @@ int CMovieBrowser::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
}
|
||||
else if (actionKey == "save_movie_info")
|
||||
{
|
||||
CHintBox loadBox(LOCALE_MOVIEBROWSER_HEAD,g_Locale->getText(LOCALE_MOVIEBROWSER_MENU_SAVE));
|
||||
loadBox.paint();
|
||||
CHint *loadBox = new CHint(LOCALE_MOVIEBROWSER_MENU_SAVE);
|
||||
loadBox->setDelay(1);
|
||||
loadBox->paint();
|
||||
|
||||
m_movieInfo.saveMovieInfo(*m_movieSelectionHandler);
|
||||
sleep(1); // small delay for very fast hardware
|
||||
loadBox.hide();
|
||||
|
||||
delete loadBox;
|
||||
}
|
||||
else if (actionKey == "save_movie_info_all")
|
||||
{
|
||||
@@ -908,8 +910,10 @@ int CMovieBrowser::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
if (current_list == NULL || m_movieSelectionHandler == NULL)
|
||||
return returnval;
|
||||
|
||||
CHintBox loadBox(LOCALE_MOVIEBROWSER_HEAD,g_Locale->getText(LOCALE_MOVIEBROWSER_INFO_HEAD_UPDATE));
|
||||
loadBox.paint();
|
||||
CHint *loadBox = new CHint(LOCALE_MOVIEBROWSER_INFO_HEAD_UPDATE);
|
||||
loadBox->setDelay(1);
|
||||
loadBox->paint();
|
||||
|
||||
for (unsigned int i = 0; i< current_list->size();i++)
|
||||
{
|
||||
if (!((*current_list)[i]->parentalLockAge != 0 && movieInfoUpdateAllIfDestEmptyOnly == true) &&
|
||||
@@ -938,8 +942,8 @@ int CMovieBrowser::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
|
||||
m_movieInfo.saveMovieInfo(*((*current_list)[i]));
|
||||
}
|
||||
sleep(1); // small delay for very fast hardware
|
||||
loadBox.hide();
|
||||
|
||||
delete loadBox;
|
||||
}
|
||||
else if (actionKey == "reload_movie_info")
|
||||
{
|
||||
|
@@ -5457,6 +5457,7 @@ int CNeutrinoApp::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
|
||||
else if (actionKey=="savesettings") {
|
||||
CHint *hint = new CHint(LOCALE_MAINSETTINGS_SAVESETTINGSNOW_HINT);
|
||||
hint->setDelay(1);
|
||||
hint->paint();
|
||||
|
||||
saveSetup(NEUTRINO_SETTINGS_FILE);
|
||||
@@ -5469,7 +5470,6 @@ int CNeutrinoApp::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
//g_Sectionsd->setEventsAreOldInMinutes((unsigned short) (g_settings.epg_old_hours*60));
|
||||
//g_Sectionsd->setHoursToCache((unsigned short) (g_settings.epg_cache_days*24));
|
||||
|
||||
sleep(1); // small delay for very fast hardware
|
||||
delete hint;
|
||||
}
|
||||
else if (actionKey=="recording") {
|
||||
@@ -5500,13 +5500,13 @@ int CNeutrinoApp::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
else if (actionKey == "camd_reset")
|
||||
{
|
||||
CHint *hint = new CHint(LOCALE_CAMD_MSG_RESET);
|
||||
hint->setDelay(1);
|
||||
hint->paint();
|
||||
|
||||
printf("[neutrino.cpp] executing \"service camd restart\"\n");
|
||||
if (my_system(3, "service", "camd", "restart") != 0)
|
||||
printf("[neutrino.cpp] executing failed\n");
|
||||
|
||||
sleep(1); // small delay for very fast hardware
|
||||
delete hint;
|
||||
|
||||
return menu_return::RETURN_EXIT_ALL;
|
||||
|
Reference in New Issue
Block a user