diff --git a/retroarch.c b/retroarch.c index 9befb5a23b..a5ca1ffc26 100644 --- a/retroarch.c +++ b/retroarch.c @@ -7593,10 +7593,12 @@ TODO: Add a setting for these tweaks */ command_event_disk_control_set_eject(new_state, print_log); +#if defined(HAVE_MENU) /* It is necessary to refresh the disk options * menu when toggling the tray state */ menu_entries_ctl(MENU_ENTRIES_CTL_SET_REFRESH, &refresh); menu_driver_ctl(RARCH_MENU_CTL_SET_PREVENT_POPULATE, NULL); +#endif } } else