check if nothing selected, console=false
This commit is contained in:
parent
0287dca42f
commit
53935cfe1d
2
main.py
2
main.py
@ -133,6 +133,8 @@ def read_configuration():
|
||||
if not os.path.exists(config_file):
|
||||
# create it
|
||||
giants_exe_path, _filename = QFileDialog.getOpenFileName(None, caption="Open Giants.exe", filter="Giants.exe")
|
||||
if not giants_exe_path:
|
||||
sys.exit(1)
|
||||
giants_dir = os.path.dirname(giants_exe_path)
|
||||
CONFIG = {"giants_directory": giants_dir, "automatic_download": True}
|
||||
save_configuration()
|
||||
|
Loading…
Reference in New Issue
Block a user