mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
src/neutrino.cpp:-add ask MESSAGEBOX for INACTIVITY SLEEPTIMER
Origin commit data
------------------
Branch: ni/coolstream
Commit: 282560875b
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-11-09 (Fri, 09 Nov 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -2658,10 +2658,21 @@ _repeat:
|
|||||||
return messages_return::handled;
|
return messages_return::handled;
|
||||||
}
|
}
|
||||||
else if( msg == NeutrinoMessages::SLEEPTIMER) {
|
else if( msg == NeutrinoMessages::SLEEPTIMER) {
|
||||||
if(skipSleepTimer) {
|
if(data) {//INACTIVITY SLEEPTIMER
|
||||||
printf("NeutrinoMessages::SLEEPTIMER: skiping\n");
|
skipShutdownTimer =
|
||||||
skipSleepTimer = false;
|
(ShowLocalizedMessage(LOCALE_MESSAGEBOX_INFO, LOCALE_SHUTDOWNTIMER_ANNOUNCE,
|
||||||
return messages_return::handled;
|
CMessageBox::mbrNo, CMessageBox::mbYes | CMessageBox::mbNo, NULL, 450, 30, true) == CMessageBox::mbrYes);//FIXME
|
||||||
|
if(skipShutdownTimer) {
|
||||||
|
printf("NeutrinoMessages::INACTIVITY SLEEPTIMER: skiping\n");
|
||||||
|
skipShutdownTimer = false;
|
||||||
|
return messages_return::handled;
|
||||||
|
}
|
||||||
|
}else{ //MAIN-MENU SLEEPTIMER
|
||||||
|
if(skipSleepTimer) {
|
||||||
|
printf("NeutrinoMessages::SLEEPTIMER: skiping\n");
|
||||||
|
skipSleepTimer = false;
|
||||||
|
return messages_return::handled;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(g_settings.shutdown_real)
|
if(g_settings.shutdown_real)
|
||||||
ExitRun(true, (cs_get_revision() > 7));
|
ExitRun(true, (cs_get_revision() > 7));
|
||||||
|
Reference in New Issue
Block a user