fix(add_game_dialog): check exe path before add game

Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
2025-08-03 20:14:02 +05:00
parent 13f3af7a42
commit 6966253e9b

View File

@ -677,7 +677,10 @@ class AddGameDialog(QDialog):
exe_path = self.exeEdit.text().strip()
name = self.nameEdit.text().strip()
if not exe_path or not name:
if not exe_path or not os.path.isfile(exe_path):
return None, None
if not name:
return None, None
portproton_path = get_portproton_location()