mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
CKeyChooserItem: add missing 'timeoutbar' while waiting for pressed key
Origin commit data
------------------
Commit: 3e17b73df6
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-09-19 (Tue, 19 Sep 2017)
This commit is contained in:
@@ -68,7 +68,7 @@ int CKeyChooserItem::exec(CMenuTarget* parent, const std::string &)
|
||||
int timeout = 10;
|
||||
|
||||
CHintBox hintbox(name, LOCALE_KEYCHOOSER_TEXT, HINTBOX_MIN_WIDTH, NEUTRINO_ICON_SETTINGS, NEUTRINO_ICON_HINT_KEYS);
|
||||
//hintbox.setTimeOut(timeout);
|
||||
hintbox.setTimeOut(timeout);
|
||||
hintbox.paint();
|
||||
|
||||
CFrameBuffer::getInstance()->blit();
|
||||
@@ -79,6 +79,7 @@ int CKeyChooserItem::exec(CMenuTarget* parent, const std::string &)
|
||||
timeoutEnd = CRCInput::calcTimeoutEnd(timeout);
|
||||
|
||||
get_Message:
|
||||
hintbox.enableTimeOutBar();
|
||||
g_RCInput->getMsgAbsoluteTimeout( &msg, &data, &timeoutEnd );
|
||||
|
||||
if (msg != CRCInput::RC_timeout)
|
||||
@@ -92,6 +93,7 @@ int CKeyChooserItem::exec(CMenuTarget* parent, const std::string &)
|
||||
}
|
||||
|
||||
g_RCInput->setLongPressAny(false);
|
||||
hintbox.disableTimeOutBar();
|
||||
hintbox.hide();
|
||||
return res;
|
||||
}
|
||||
|
Reference in New Issue
Block a user