mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-09 14:48:28 +02:00
neutrino: use simple hintboxes w/o header
To avoid the sleep command, a call hint->setDelay(1) nice. :)
Origin commit data
------------------
Branch: ni/coolstream
Commit: 94212a1536
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-09-28 (Tue, 28 Sep 2021)
Origin message was:
------------------
- neutrino: use simple hintboxes w/o header
To avoid the sleep command, a call hint->setDelay(1) nice. :)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -5456,8 +5456,8 @@ int CNeutrinoApp::exec(CMenuTarget* parent, const std::string & actionKey)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
else if (actionKey=="savesettings") {
|
else if (actionKey=="savesettings") {
|
||||||
CHintBox hintBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_MAINSETTINGS_SAVESETTINGSNOW_HINT)); // UTF-8
|
CHint *hint = new CHint(LOCALE_MAINSETTINGS_SAVESETTINGSNOW_HINT);
|
||||||
hintBox.paint();
|
hint->paint();
|
||||||
|
|
||||||
saveSetup(NEUTRINO_SETTINGS_FILE);
|
saveSetup(NEUTRINO_SETTINGS_FILE);
|
||||||
|
|
||||||
@@ -5470,23 +5470,24 @@ int CNeutrinoApp::exec(CMenuTarget* parent, const std::string & actionKey)
|
|||||||
//g_Sectionsd->setHoursToCache((unsigned short) (g_settings.epg_cache_days*24));
|
//g_Sectionsd->setHoursToCache((unsigned short) (g_settings.epg_cache_days*24));
|
||||||
|
|
||||||
sleep(1); // small delay for very fast hardware
|
sleep(1); // small delay for very fast hardware
|
||||||
hintBox.hide();
|
delete hint;
|
||||||
}
|
}
|
||||||
else if (actionKey=="recording") {
|
else if (actionKey=="recording") {
|
||||||
setupRecordingDevice();
|
setupRecordingDevice();
|
||||||
}
|
}
|
||||||
else if (actionKey=="reloadplugins") {
|
else if (actionKey=="reloadplugins") {
|
||||||
CHintBox hintBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_SERVICEMENU_GETPLUGINS_HINT));
|
CHint *hint = new CHint(LOCALE_SERVICEMENU_GETPLUGINS_HINT);
|
||||||
hintBox.paint();
|
hint->paint();
|
||||||
|
|
||||||
g_Plugins->loadPlugins();
|
g_Plugins->loadPlugins();
|
||||||
|
|
||||||
hintBox.hide();
|
sleep(1); // small delay for very fast hardware
|
||||||
|
delete hint;
|
||||||
}
|
}
|
||||||
else if (actionKey=="restarttuner")
|
else if (actionKey=="restarttuner")
|
||||||
{
|
{
|
||||||
CHintBox * hintBox = new CHintBox(LOCALE_SERVICEMENU_RESTART_TUNER, g_Locale->getText(LOCALE_SERVICEMENU_RESTARTING_TUNER));
|
CHint *hint = new CHint(LOCALE_SERVICEMENU_RESTARTING_TUNER);
|
||||||
hintBox->paint();
|
hint->paint();
|
||||||
|
|
||||||
g_Zapit->setStandby(true);
|
g_Zapit->setStandby(true);
|
||||||
sleep(2);
|
sleep(2);
|
||||||
@@ -5494,20 +5495,19 @@ int CNeutrinoApp::exec(CMenuTarget* parent, const std::string & actionKey)
|
|||||||
sleep(2);
|
sleep(2);
|
||||||
g_Zapit->Rezap();
|
g_Zapit->Rezap();
|
||||||
|
|
||||||
hintBox->hide();
|
delete hint;
|
||||||
delete hintBox;
|
|
||||||
}
|
}
|
||||||
else if (actionKey == "camd_reset")
|
else if (actionKey == "camd_reset")
|
||||||
{
|
{
|
||||||
CHintBox hintbox(LOCALE_CAMD_CONTROL, LOCALE_CAMD_MSG_RESET);
|
CHint *hint = new CHint(LOCALE_CAMD_MSG_RESET);
|
||||||
hintbox.paint();
|
hint->paint();
|
||||||
|
|
||||||
printf("[neutrino.cpp] executing \"service camd restart\"\n");
|
printf("[neutrino.cpp] executing \"service camd restart\"\n");
|
||||||
if (my_system(3, "service", "camd", "restart") != 0)
|
if (my_system(3, "service", "camd", "restart") != 0)
|
||||||
printf("[neutrino.cpp] executing failed\n");
|
printf("[neutrino.cpp] executing failed\n");
|
||||||
sleep(1);
|
|
||||||
|
|
||||||
hintbox.hide();
|
sleep(1); // small delay for very fast hardware
|
||||||
|
delete hint;
|
||||||
|
|
||||||
return menu_return::RETURN_EXIT_ALL;
|
return menu_return::RETURN_EXIT_ALL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user