mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Avoid resetting current endpoint when custom endpoint has not changed
This commit is contained in:
parent
7914592bce
commit
2d4a2983bc
1 changed files with 3 additions and 2 deletions
|
@ -665,8 +665,9 @@ create table if not exists profiles
|
|||
return self.profile.get("customSyncUrl")
|
||||
|
||||
def set_custom_sync_url(self, url: str | None) -> None:
|
||||
self.set_current_sync_url(None)
|
||||
self.profile["customSyncUrl"] = url
|
||||
if url != self.custom_sync_url():
|
||||
self.set_current_sync_url(None)
|
||||
self.profile["customSyncUrl"] = url
|
||||
|
||||
def auto_sync_media_minutes(self) -> int:
|
||||
return self.profile.get("autoSyncMediaMinutes", 15)
|
||||
|
|
Loading…
Reference in a new issue