mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-08 14:18:29 +02:00
CMenuOptionStringChooser: remember last item
useful for some cases if needed, default off
Origin commit data
------------------
Branch: ni/coolstream
Commit: d41b2ce0bc
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-03-18 (Mon, 18 Mar 2019)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -2156,6 +2156,7 @@ void CMenuOptionStringChooser::init( const std::string &OptionName,
|
||||
optionValuePtr = pOptionValue ? pOptionValue : &optionValue;
|
||||
observ = Observ;
|
||||
pulldown = Pulldown;
|
||||
hold_last_item = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -2197,7 +2198,7 @@ int CMenuOptionStringChooser::exec(CMenuTarget* parent)
|
||||
|
||||
std::string title_str = title.empty() ? getName() : title;
|
||||
|
||||
CMenuWidget* menu = new CMenuWidget(title_str, NEUTRINO_ICON_SETTINGS);
|
||||
CMenuWidget* menu = new CMenuWidget(title_str, NEUTRINO_ICON_SETTINGS, 20, hold_last_item ? MN_WIDGET_ID_MENU_SELECT_STRING : -1);
|
||||
menu->addIntroItems(NONEXISTANT_LOCALE, NONEXISTANT_LOCALE, CMenuWidget::BTN_TYPE_CANCEL);
|
||||
//if(parent) menu->move(20, 0);
|
||||
CMenuSelectorTarget * selector = new CMenuSelectorTarget(&select);
|
||||
|
Reference in New Issue
Block a user