CMenuOptionNumberChooser: expand localize functionality for any number

This commit is contained in:
2018-04-04 14:07:26 +02:00
parent 6656a65fb4
commit fdbddce9dd
4 changed files with 28 additions and 20 deletions

View File

@@ -169,8 +169,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);
}