mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
msgbox: remove duplicated code
Origin commit data
------------------
Commit: c3ab1b91d8
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-03-04 (Sat, 04 Mar 2017)
This commit is contained in:
committed by
Michael Liebmann
parent
c6a36ed677
commit
d178f57c41
@@ -279,14 +279,11 @@ int CMsgBox::exec()
|
||||
//***navi buttons for button selection***
|
||||
else if(msg == CRCInput::RC_right || msg == CRCInput::RC_left)
|
||||
{
|
||||
if (msg == CRCInput::RC_right) {
|
||||
if (msg == CRCInput::RC_right)
|
||||
ccw_footer->setSelectedButton(selected+1);
|
||||
mb_show_button = ccw_footer->getSelectedButtonObject()->getButtonAlias();
|
||||
}
|
||||
if (msg == CRCInput::RC_left) {
|
||||
else
|
||||
ccw_footer->setSelectedButton(selected-1);
|
||||
mb_show_button = ccw_footer->getSelectedButtonObject()->getButtonAlias();
|
||||
}
|
||||
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***
|
||||
|
Reference in New Issue
Block a user