1
0
Fork 0
mirror of synced 2024-06-17 10:04:43 +12:00

LaunchDialog: Move update check before login()

This commit is contained in:
loathingKernel 2022-09-04 19:51:23 +03:00
parent afcdc1dea1
commit 7020141148

View file

@ -117,15 +117,15 @@ class LaunchDialog(QDialog):
pass
else:
QApplication.instance().processEvents()
# Force an update check and notice in case there are API changes
self.core.check_for_updates(force=True)
self.core.force_show_update = True
if self.core.login():
logger.info("You are logged in")
else:
raise ValueError("You are not logged in. Open Login Window")
except ValueError as e:
logger.info(str(e))
# Force an update check and notice in case there are API changes
self.core.check_for_updates(force=True)
self.core.force_show_update = True
# Do not set parent, because it won't show a task bar icon
# Update: Inherit the same parent as LaunchDialog
do_launch = self.login_dialog.login()