CMenuOptionNumberChooser: expand localize functionality for any number

Origin commit data
------------------
Branch: ni/coolstream
Commit: 5ab92c41a7
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-04-04 (Wed, 04 Apr 2018)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2018-04-04 14:07:26 +02:00
committed by vanhofen
parent 7552067b07
commit 842da46db7
4 changed files with 28 additions and 20 deletions

View File

@@ -172,8 +172,7 @@ int CVfdSetup::showSetup()
{
// allow to set scroll_repeats
CMenuOptionNumberChooser * nc = new CMenuOptionNumberChooser(LOCALE_LCDMENU_SCROLL_REPEATS, &g_settings.lcd_scroll, vfd_enabled, 0, 999, this);
nc->setLocalizedValue(0);
nc->setLocalizedValueName(LOCALE_OPTIONS_OFF);
nc->setLocalizedValue(0, LOCALE_OPTIONS_OFF);
nc->setHint("", LOCALE_MENU_HINT_VFD_SCROLL);
vfds->addItem(nc);
}