src/neutrino.cpp:-add ask MESSAGEBOX for INACTIVITY SLEEPTIMER

Origin commit data
------------------
Commit: 282560875b
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-11-09 (Fri, 09 Nov 2012)
This commit is contained in:
Jacek Jendrzej
2012-11-09 14:50:55 +01:00
parent d58d42c9c0
commit 1b2eb75373

View File

@@ -2658,10 +2658,21 @@ _repeat:
return messages_return::handled;
}
else if( msg == NeutrinoMessages::SLEEPTIMER) {
if(skipSleepTimer) {
printf("NeutrinoMessages::SLEEPTIMER: skiping\n");
skipSleepTimer = false;
return messages_return::handled;
if(data) {//INACTIVITY SLEEPTIMER
skipShutdownTimer =
(ShowLocalizedMessage(LOCALE_MESSAGEBOX_INFO, LOCALE_SHUTDOWNTIMER_ANNOUNCE,
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)
ExitRun(true, (cs_get_revision() > 7));