Merge pull request #7827 from orbea/kiosk

menu: Hide options for the kiosk menu.
This commit is contained in:
Twinaphex 2018-12-26 19:10:41 +01:00 committed by GitHub
commit 3548956509
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2672,7 +2672,7 @@ static int menu_displaylist_parse_load_content_settings(
{
if (!recording_is_enabled())
{
if (settings->bools.quick_menu_show_start_recording)
if (settings->bools.quick_menu_show_start_recording && !settings->bools.kiosk_mode_enable)
{
menu_entries_append_enum(info->list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QUICK_MENU_START_RECORDING),
@ -2680,7 +2680,7 @@ static int menu_displaylist_parse_load_content_settings(
MENU_ENUM_LABEL_QUICK_MENU_START_RECORDING, MENU_SETTING_ACTION, 0, 0);
}
if (settings->bools.quick_menu_show_start_streaming)
if (settings->bools.quick_menu_show_start_streaming && !settings->bools.kiosk_mode_enable)
{
menu_entries_append_enum(info->list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QUICK_MENU_START_STREAMING),
@ -2893,7 +2893,7 @@ static int menu_displaylist_parse_horizontal_content_actions(
MENU_ENUM_LABEL_ADD_TO_FAVORITES_PLAYLIST, FILE_TYPE_PLAYLIST_ENTRY, 0, 0);
}
if (settings->bools.quick_menu_show_reset_core_association)
if (settings->bools.quick_menu_show_reset_core_association && !settings->bools.kiosk_mode_enable)
{
menu_entries_append_enum(info->list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RESET_CORE_ASSOCIATION),