fix(input_manager): prevent game launch when AddGameDialog is open

Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
Boris Yumankulov 2025-06-06 13:23:55 +05:00
parent c460737bed
commit 565dc49f36
Signed by: Boria138
GPG Key ID: 14B4A5673FD39C76

View File

@ -153,7 +153,7 @@ class InputManager(QObject):
return
# Game launch on detail page
if (button_code in BUTTONS['confirm'] or button_code in BUTTONS['confirm_stick']) and self._parent.currentDetailPage is not None:
if (button_code in BUTTONS['confirm'] or button_code in BUTTONS['confirm_stick']) and self._parent.currentDetailPage is not None and self._parent.current_add_game_dialog is None:
if self._parent.current_exec_line:
self._parent.toggleGame(self._parent.current_exec_line, None)
return