- user-menu: add audio fileplay item

Conflicts:
	src/gui/user_menue_setup.cpp
	src/system/settings.h

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2017-12-19 12:46:04 +01:00
committed by Thilo Graf
parent 3d5aa5977a
commit fb2d6f95e8
3 changed files with 9 additions and 0 deletions

View File

@@ -419,6 +419,13 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg)
menu_item->setHint(NEUTRINO_ICON_HINT_FILEPLAY, LOCALE_MENU_HINT_FILEPLAY);
break;
}
case SNeutrinoSettings::ITEM_FILEPLAY_AUDIO:
{
keyhelper.get(&key,&icon);
menu_item = new CMenuForwarder(LOCALE_MOVIEPLAYER_FILEPLAYBACK_AUDIO, !_mode_ts, NULL, neutrino, "fileplayback_audio", key, icon);
menu_item->setHint(NEUTRINO_ICON_HINT_FILEPLAY, LOCALE_MENU_HINT_FILEPLAY);
break;
}
case SNeutrinoSettings::ITEM_TOOLS:
{
keyhelper.get(&key,&icon);

View File

@@ -100,6 +100,7 @@ static keyvals usermenu_items[] =
{ SNeutrinoSettings::ITEM_SWUPDATE, LOCALE_SERVICEMENU_UPDATE, usermenu_show },
{ SNeutrinoSettings::ITEM_LIVESTREAM_RESOLUTION,LOCALE_LIVESTREAM_RESOLUTION, usermenu_show },
{ SNeutrinoSettings::ITEM_ADZAP, LOCALE_USERMENU_ITEM_ADZAP, usermenu_show },
{ SNeutrinoSettings::ITEM_FILEPLAY_AUDIO, LOCALE_MOVIEPLAYER_FILEPLAYBACK_AUDIO, usermenu_show },
{ SNeutrinoSettings::ITEM_MAX, NONEXISTANT_LOCALE, usermenu_show }
};

View File

@@ -864,6 +864,7 @@ struct SNeutrinoSettings
ITEM_SWUPDATE = 30,
ITEM_LIVESTREAM_RESOLUTION = 31,
ITEM_ADZAP = 32,
ITEM_FILEPLAY_AUDIO = 33,
ITEM_MAX // MUST be always the last in the list
} USER_ITEM;