fix(add_game_dialog): check exe path before add game
Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
@ -677,7 +677,10 @@ class AddGameDialog(QDialog):
|
|||||||
exe_path = self.exeEdit.text().strip()
|
exe_path = self.exeEdit.text().strip()
|
||||||
name = self.nameEdit.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
|
return None, None
|
||||||
|
|
||||||
portproton_path = get_portproton_location()
|
portproton_path = get_portproton_location()
|
||||||
|
Reference in New Issue
Block a user