mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
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
This commit is contained in:
parent
321e23acb2
commit
d486f530a9
1 changed files with 1 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue