mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
add bigger stepsize for MenueOptionNumberChooser
Origin commit data
------------------
Branch: ni/coolstream
Commit: bce2eeba6e
Author: TangoCash <eric@loxat.de>
Date: 2022-11-09 (Wed, 09 Nov 2022)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1038,6 +1038,8 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
|
|||||||
}
|
}
|
||||||
case (CRCInput::RC_left):
|
case (CRCInput::RC_left):
|
||||||
case (CRCInput::RC_right):
|
case (CRCInput::RC_right):
|
||||||
|
case (CRCInput::RC_prev):
|
||||||
|
case (CRCInput::RC_next):
|
||||||
case (CRCInput::RC_ok):
|
case (CRCInput::RC_ok):
|
||||||
if (hasItem() && selected > -1 && (int)items.size() > selected) {
|
if (hasItem() && selected > -1 && (int)items.size() > selected) {
|
||||||
#ifdef ENABLE_GRAPHLCD
|
#ifdef ENABLE_GRAPHLCD
|
||||||
@@ -1049,6 +1051,10 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
|
|||||||
|
|
||||||
//exec this item...
|
//exec this item...
|
||||||
CMenuItem* item = items[selected];
|
CMenuItem* item = items[selected];
|
||||||
|
if ((msg == CRCInput::RC_prev || msg == CRCInput::RC_next) &&
|
||||||
|
!item->isMenueOptionChooser()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (msg == CRCInput::RC_left && g_settings.menu_left_exit &&
|
if (msg == CRCInput::RC_left && g_settings.menu_left_exit &&
|
||||||
!item->isMenueOptionChooser()) {
|
!item->isMenueOptionChooser()) {
|
||||||
msg = CRCInput::RC_timeout;
|
msg = CRCInput::RC_timeout;
|
||||||
@@ -1841,6 +1847,20 @@ int CMenuOptionNumberChooser::exec(CMenuTarget*)
|
|||||||
else if (*optionValue < lower_bound)
|
else if (*optionValue < lower_bound)
|
||||||
*optionValue = lower_bound;
|
*optionValue = lower_bound;
|
||||||
res = menu_return::RETURN_REPAINT;
|
res = menu_return::RETURN_REPAINT;
|
||||||
|
} else if (msg == CRCInput::RC_prev || msg == CRCInput::RC_next)
|
||||||
|
{
|
||||||
|
if (msg == CRCInput::RC_next)
|
||||||
|
{
|
||||||
|
(*optionValue) += 10;
|
||||||
|
if ((*optionValue) > upper_bound)
|
||||||
|
*optionValue = upper_bound;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
(*optionValue) -= 10;
|
||||||
|
if ((*optionValue) < lower_bound)
|
||||||
|
*optionValue = lower_bound;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (((*optionValue) >= upper_bound) || ((*optionValue) < lower_bound))
|
if (((*optionValue) >= upper_bound) || ((*optionValue) < lower_bound))
|
||||||
*optionValue = lower_bound;
|
*optionValue = lower_bound;
|
||||||
|
Reference in New Issue
Block a user