mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 09:51:22 +02:00
CKeyChooserItem: add missing 'timeoutbar' while waiting for pressed key
This commit is contained in:
@@ -68,7 +68,7 @@ int CKeyChooserItem::exec(CMenuTarget* parent, const std::string &)
|
|||||||
int timeout = 10;
|
int timeout = 10;
|
||||||
|
|
||||||
CHintBox hintbox(name, LOCALE_KEYCHOOSER_TEXT, HINTBOX_MIN_WIDTH, NEUTRINO_ICON_SETTINGS, NEUTRINO_ICON_HINT_KEYS);
|
CHintBox hintbox(name, LOCALE_KEYCHOOSER_TEXT, HINTBOX_MIN_WIDTH, NEUTRINO_ICON_SETTINGS, NEUTRINO_ICON_HINT_KEYS);
|
||||||
//hintbox.setTimeOut(timeout);
|
hintbox.setTimeOut(timeout);
|
||||||
hintbox.paint();
|
hintbox.paint();
|
||||||
|
|
||||||
CFrameBuffer::getInstance()->blit();
|
CFrameBuffer::getInstance()->blit();
|
||||||
@@ -79,6 +79,7 @@ int CKeyChooserItem::exec(CMenuTarget* parent, const std::string &)
|
|||||||
timeoutEnd = CRCInput::calcTimeoutEnd(timeout);
|
timeoutEnd = CRCInput::calcTimeoutEnd(timeout);
|
||||||
|
|
||||||
get_Message:
|
get_Message:
|
||||||
|
hintbox.enableTimeOutBar();
|
||||||
g_RCInput->getMsgAbsoluteTimeout( &msg, &data, &timeoutEnd );
|
g_RCInput->getMsgAbsoluteTimeout( &msg, &data, &timeoutEnd );
|
||||||
|
|
||||||
if (msg != CRCInput::RC_timeout)
|
if (msg != CRCInput::RC_timeout)
|
||||||
@@ -92,6 +93,7 @@ int CKeyChooserItem::exec(CMenuTarget* parent, const std::string &)
|
|||||||
}
|
}
|
||||||
|
|
||||||
g_RCInput->setLongPressAny(false);
|
g_RCInput->setLongPressAny(false);
|
||||||
|
hintbox.disableTimeOutBar();
|
||||||
hintbox.hide();
|
hintbox.hide();
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user