mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 12:39:54 +00:00
Properly hide other notification visibility screenshot settings
when master one is disabled
This commit is contained in:
parent
6cba44328d
commit
279e142668
@ -7553,6 +7553,9 @@ unsigned menu_displaylist_build_list(
|
||||
#ifdef HAVE_GFX_WIDGETS
|
||||
bool widgets_supported = video_driver_has_widgets();
|
||||
bool menu_enable_widgets = settings->bools.menu_enable_widgets;
|
||||
#endif
|
||||
#ifdef HAVE_SCREENSHOTS
|
||||
bool notification_show_screenshot = settings->bools.notification_show_screenshot;
|
||||
#endif
|
||||
menu_displaylist_build_info_selective_t build_list[] = {
|
||||
{MENU_ENUM_LABEL_FPS_SHOW, PARSE_ONLY_BOOL, true },
|
||||
@ -7599,15 +7602,19 @@ unsigned menu_displaylist_build_list(
|
||||
break;
|
||||
case MENU_ENUM_LABEL_NOTIFICATION_SHOW_SCREENSHOT_DURATION:
|
||||
#ifdef HAVE_SCREENSHOTS
|
||||
if (widgets_supported &&
|
||||
menu_enable_widgets)
|
||||
if ( widgets_supported &&
|
||||
menu_enable_widgets &&
|
||||
notification_show_screenshot
|
||||
)
|
||||
build_list[i].checked = true;
|
||||
#endif
|
||||
break;
|
||||
case MENU_ENUM_LABEL_NOTIFICATION_SHOW_SCREENSHOT_FLASH:
|
||||
#ifdef HAVE_SCREENSHOTS
|
||||
if (widgets_supported &&
|
||||
menu_enable_widgets)
|
||||
if ( widgets_supported &&
|
||||
menu_enable_widgets &&
|
||||
notification_show_screenshot
|
||||
)
|
||||
build_list[i].checked = true;
|
||||
#endif
|
||||
break;
|
||||
|
@ -12720,6 +12720,9 @@ static bool setting_append_list(
|
||||
general_write_handler,
|
||||
general_read_handler,
|
||||
SD_FLAG_NONE);
|
||||
(*list)[list_info->index - 1].action_ok = &setting_bool_action_left_with_refresh;
|
||||
(*list)[list_info->index - 1].action_left = &setting_bool_action_left_with_refresh;
|
||||
(*list)[list_info->index - 1].action_right = &setting_bool_action_right_with_refresh;
|
||||
|
||||
CONFIG_UINT(
|
||||
list, list_info,
|
||||
|
Loading…
x
Reference in New Issue
Block a user