mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-03 10:51:05 +02:00
CMsgBox: Ensure to get next selectable item.
Origin commit data
------------------
Commit: abca27ac7e
Author: Thilo Graf <dbt@novatux.de>
Date: 2022-02-08 (Tue, 08 Feb 2022)
This commit is contained in:
@@ -321,20 +321,24 @@ int CMsgBox::exec()
|
|||||||
ccw_footer->SetSelectedButton(selected+1);
|
ccw_footer->SetSelectedButton(selected+1);
|
||||||
else
|
else
|
||||||
ccw_footer->SetSelectedButton(selected-1);
|
ccw_footer->SetSelectedButton(selected-1);
|
||||||
mb_show_button = ccw_footer->getSelectedButtonObject()->getButtonAlias();
|
|
||||||
selected = ccw_footer->getSelectedButton();
|
|
||||||
|
|
||||||
//***refresh buttons only if we have more than one button, this avoids unnecessary repaints with possible flicker effects***
|
if (ccw_footer->getSelectedButtonObject())
|
||||||
if (ccw_footer->getButtonChainObject()->size()>1)
|
{
|
||||||
refreshFoot();
|
mb_show_button = ccw_footer->getSelectedButtonObject()->getButtonAlias();
|
||||||
|
selected = ccw_footer->getSelectedButton();
|
||||||
|
|
||||||
//***refresh timeout on any pressed navi key! This resets current timeout end to initial value***
|
//***refresh buttons only if we have more than one button, this avoids unnecessary repaints with possible flicker effects***
|
||||||
if (timeout > 0) {
|
if (ccw_footer->getButtonChainObject()->size()>1)
|
||||||
if(timeout_pb)
|
refreshFoot();
|
||||||
timeout_pb->setValues(0, timeout);
|
|
||||||
timeoutEnd = CRCInput::calcTimeoutEnd(timeout);
|
//***refresh timeout on any pressed navi key! This resets current timeout end to initial value***
|
||||||
|
if (timeout > 0) {
|
||||||
|
if(timeout_pb)
|
||||||
|
timeout_pb->setValues(0, timeout);
|
||||||
|
timeoutEnd = CRCInput::calcTimeoutEnd(timeout);
|
||||||
|
}
|
||||||
|
dprintf(DEBUG_INFO, "\033[32m[CMsgBox] [%s - %d] result = %d, mb_show_button = %d\033[0m\n", __func__, __LINE__, result, mb_show_button);
|
||||||
}
|
}
|
||||||
dprintf(DEBUG_INFO, "\033[32m[CMsgBox] [%s - %d] result = %d, mb_show_button = %d\033[0m\n", __func__, __LINE__, result, mb_show_button);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//***action buttons without preselection***
|
//***action buttons without preselection***
|
||||||
|
Reference in New Issue
Block a user