mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Only toggle UI companion driver if UI is on foreground
This commit is contained in:
parent
485750c8ba
commit
314d683228
@ -37,6 +37,7 @@
|
||||
#include "retroarch.h"
|
||||
#include "rewind.h"
|
||||
#include "system.h"
|
||||
#include "ui/ui_companion_driver.h"
|
||||
#include "dir_list_special.h"
|
||||
|
||||
#ifdef HAVE_CHEEVOS
|
||||
@ -1352,7 +1353,8 @@ bool event_cmd_ctl(enum event_command cmd, void *data)
|
||||
break;
|
||||
case EVENT_CMD_RESUME:
|
||||
rarch_ctl(RARCH_CTL_MENU_RUNNING_FINISHED, NULL);
|
||||
ui_companion_driver_toggle();
|
||||
if (ui_companion_is_on_foreground())
|
||||
ui_companion_driver_toggle();
|
||||
break;
|
||||
case EVENT_CMD_RESTART_RETROARCH:
|
||||
if (!frontend_driver_set_fork(FRONTEND_FORK_RESTART))
|
||||
|
Loading…
x
Reference in New Issue
Block a user