From d24d2e33943af2361b5a9880572b30887efcf3ee Mon Sep 17 00:00:00 2001 From: Ranjit Odedra <78635944+ranjitodedra@users.noreply.github.com> Date: Fri, 17 Oct 2025 18:11:50 -0400 Subject: [PATCH] Fix sync login dialog not using newly-set custom sync server #4395 (#4396) * Fix sync login with custom server URL Call update_network() before showing login dialog to ensure the custom sync server URL is saved before attempting login. Previously, the custom URL was only saved when closing the preferences dialog, causing login to fail on first attempt. Fixes #4395 * Add contributor info --- CONTRIBUTORS | 1 + qt/aqt/preferences.py | 1 + 2 files changed, 2 insertions(+) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 4e01aa0b2..43f7a7e46 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -251,6 +251,7 @@ Matbe766 Amanda Sternberg arold0 nav1s +Ranjit Odedra ******************** diff --git a/qt/aqt/preferences.py b/qt/aqt/preferences.py index afce6d489..939dd8c2c 100644 --- a/qt/aqt/preferences.py +++ b/qt/aqt/preferences.py @@ -260,6 +260,7 @@ class Preferences(QDialog): self.update_login_status() self.confirm_sync_after_login() + self.update_network() sync_login(self.mw, on_success) def sync_logout(self) -> None: