mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 09:51:13 +02:00
neutrino.cpp: suppress inactivity popup in standby mode
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7dcc266084
Author: GetAway <get-away@t-online.de>
Date: 2022-10-02 (Sun, 02 Oct 2022)
Origin message was:
------------------
- neutrino.cpp: suppress inactivity popup in standby mode
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -4431,18 +4431,22 @@ int CNeutrinoApp::handleMsg(const neutrino_msg_t _msg, neutrino_msg_data_t data)
|
|||||||
return messages_return::handled;
|
return messages_return::handled;
|
||||||
}
|
}
|
||||||
else if( msg == NeutrinoMessages::SLEEPTIMER) {
|
else if( msg == NeutrinoMessages::SLEEPTIMER) {
|
||||||
if(data) {//INACTIVITY SLEEPTIMER
|
if( data && mode == NeutrinoModes::mode_standby ) { //SKIP INACTIVITY SLEEPTIMER
|
||||||
|
printf("NeutrinoMessages::INACTIVITY SLEEPTIMER: skipping, already in standby mode\n");
|
||||||
|
return messages_return::handled;
|
||||||
|
}
|
||||||
|
else if(data) {//INACTIVITY SLEEPTIMER
|
||||||
int msgbox = ShowMsg(LOCALE_MESSAGEBOX_INFO, g_settings.shutdown_real ? LOCALE_SHUTDOWNTIMER_ANNOUNCE:LOCALE_SLEEPTIMERBOX_ANNOUNCE,
|
int msgbox = ShowMsg(LOCALE_MESSAGEBOX_INFO, g_settings.shutdown_real ? LOCALE_SHUTDOWNTIMER_ANNOUNCE:LOCALE_SLEEPTIMERBOX_ANNOUNCE,
|
||||||
CMsgBox::mbrCancel, CMsgBox::mbCancel, NULL, 450, 60);
|
CMsgBox::mbrCancel, CMsgBox::mbCancel, NULL, 450, 60);
|
||||||
skipShutdownTimer = !(msgbox & CMsgBox::mbrTimeout);
|
skipShutdownTimer = !(msgbox & CMsgBox::mbrTimeout);
|
||||||
if(skipShutdownTimer) {
|
if(skipShutdownTimer) {
|
||||||
printf("NeutrinoMessages::INACTIVITY SLEEPTIMER: skiping\n");
|
printf("NeutrinoMessages::INACTIVITY SLEEPTIMER: skipping\n");
|
||||||
skipShutdownTimer = false;
|
skipShutdownTimer = false;
|
||||||
return messages_return::handled;
|
return messages_return::handled;
|
||||||
}
|
}
|
||||||
}else{ //MAIN-MENU SLEEPTIMER
|
}else{ //MAIN-MENU SLEEPTIMER
|
||||||
if(skipSleepTimer) {
|
if(skipSleepTimer) {
|
||||||
printf("NeutrinoMessages::SLEEPTIMER: skiping\n");
|
printf("NeutrinoMessages::SLEEPTIMER: skipping\n");
|
||||||
skipSleepTimer = false;
|
skipSleepTimer = false;
|
||||||
return messages_return::handled;
|
return messages_return::handled;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user