From 70201411480c007a4d945df3be7bc67357135a6d Mon Sep 17 00:00:00 2001 From: loathingKernel <142770+loathingKernel@users.noreply.github.com> Date: Sun, 4 Sep 2022 19:51:23 +0300 Subject: [PATCH] LaunchDialog: Move update check before login() --- rare/components/dialogs/launch_dialog.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rare/components/dialogs/launch_dialog.py b/rare/components/dialogs/launch_dialog.py index 72243e8c..458b5591 100644 --- a/rare/components/dialogs/launch_dialog.py +++ b/rare/components/dialogs/launch_dialog.py @@ -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()