mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-06 21:28:26 +02:00
rc_lock: lock for rc_lock, use only once, supplement to 5bc50d70d8
Origin commit data ------------------ Commit:9a2d6aea26
Author: Jacek Jendrzej <overx300@gmail.com> Date: 2012-10-22 (Mon, 22 Oct 2012) Origin message was: ------------------ rc_lock: lock for rc_lock, use only once, supplement to5bc50d70d8
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
#include <gui/widget/stringinput.h>
|
||||
|
||||
const std::string CRCLock::NO_USER_INPUT = "noUserInput";
|
||||
bool CRCLock::locked = false;
|
||||
|
||||
// -- Menue Handler Interface
|
||||
// -- Infinite Loop to lock remote control (until release lock key pressed)
|
||||
@@ -45,6 +46,9 @@ const std::string CRCLock::NO_USER_INPUT = "noUserInput";
|
||||
|
||||
int CRCLock::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
{
|
||||
if(locked)
|
||||
return menu_return::RETURN_EXIT_ALL;
|
||||
|
||||
if (parent)
|
||||
parent->hide();
|
||||
|
||||
@@ -55,7 +59,9 @@ int CRCLock::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
return menu_return::RETURN_EXIT_ALL;
|
||||
|
||||
// -- Lockup Box
|
||||
locked = true;
|
||||
lockBox();
|
||||
locked = false;
|
||||
|
||||
ShowLocalizedMessage(LOCALE_RCLOCK_TITLE, LOCALE_RCLOCK_UNLOCKMSG, CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO,450, no_input ? 5 : -1);
|
||||
return menu_return::RETURN_EXIT_ALL;
|
||||
|
Reference in New Issue
Block a user