mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
Merge remote-tracking branch 'tuxbox/master'
This commit is contained in:
@@ -32,7 +32,8 @@
|
||||
#include <gui/rc_lock.h>
|
||||
|
||||
#include <driver/display.h>
|
||||
#include <gui/widget/messagebox.h>
|
||||
#include <gui/widget/msgbox.h>
|
||||
|
||||
|
||||
const std::string CRCLock::NO_USER_INPUT = "NO_USER_INPUT";
|
||||
|
||||
@@ -75,15 +76,15 @@ int CRCLock::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
char lock_msg[1024];
|
||||
snprintf(lock_msg, sizeof(lock_msg)-1, g_Locale->getText(LOCALE_RCLOCK_LOCKMSG), key_unlock.c_str());
|
||||
|
||||
if (ShowMsg(LOCALE_RCLOCK_TITLE, lock_msg, CMessageBox::mbrYes, CMessageBox::mbYes | CMessageBox::mbCancel,
|
||||
NEUTRINO_ICON_INFO, 450, no_input ? 5 : -1, no_input) == CMessageBox::mbrCancel)
|
||||
if (ShowMsg(LOCALE_RCLOCK_TITLE, lock_msg, CMsgBox::mbrYes, CMsgBox::mbYes | CMsgBox::mbCancel,
|
||||
NEUTRINO_ICON_INFO, 450, no_input ? 5 : -1, no_input) == CMsgBox::mbrCancel)
|
||||
return menu_return::RETURN_EXIT_ALL;
|
||||
|
||||
locked = true;
|
||||
lockRC();
|
||||
locked = false;
|
||||
|
||||
ShowMsg(LOCALE_RCLOCK_TITLE, LOCALE_RCLOCK_UNLOCKMSG, CMessageBox::mbrBack, CMessageBox::mbBack,
|
||||
ShowMsg(LOCALE_RCLOCK_TITLE, LOCALE_RCLOCK_UNLOCKMSG, CMsgBox::mbrBack, CMsgBox::mbBack,
|
||||
NEUTRINO_ICON_INFO, 450, no_input ? 5 : -1);
|
||||
return menu_return::RETURN_EXIT_ALL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user