mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Only toggle UI companion driver if UI is on foreground
This commit is contained in:
parent
485750c8ba
commit
314d683228
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue