Added fix for ai service overlay still showing when opening the menu.

This commit is contained in:
Barry Rowe 2019-11-06 09:46:55 -08:00
parent 4d6555d58b
commit a247ee14cd

View File

@ -4852,6 +4852,14 @@ bool command_event(enum event_command cmd, void *data)
case CMD_EVENT_OVERLAY_DEINIT:
#ifdef HAVE_OVERLAY
retroarch_overlay_deinit();
#endif
#ifdef HAVE_MENU_WIDGETS
if (menu_widgets_ai_service_overlay_get_state() != 0)
{
/* Because the overlay is a menu widget, it's going to be written
* over the menu, so we unset it here. */
menu_widgets_ai_service_overlay_unload();
}
#endif
break;
case CMD_EVENT_OVERLAY_INIT: