Skip to content
Snippets Groups Projects
Commit 06ef7189 authored by Kien Le's avatar Kien Le
Browse files

Fix program crashing with error code 1

parent 66252307
No related branches found
No related tags found
1 merge request!218Fix program not fitting on low resolution screens
...@@ -61,7 +61,7 @@ def main(): ...@@ -61,7 +61,7 @@ def main():
config = ConfigProcessor() config = ConfigProcessor()
config.load_config() config.load_config()
do_reset = False do_reset = None
try: try:
config.validate_config() config.validate_config()
config.apply_config(wnd) config.apply_config(wnd)
...@@ -76,7 +76,7 @@ def main(): ...@@ -76,7 +76,7 @@ def main():
'that it is not opened in another program.', 'that it is not opened in another program.',
QMessageBox.Close) QMessageBox.Close)
sys.exit(1) sys.exit(1)
else: elif do_reset is not None:
sys.exit(1) sys.exit(1)
config.apply_config(wnd) config.apply_config(wnd)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment