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")
|
return self.profile.get("customSyncUrl")
|
||||||
|
|
||||||
def set_custom_sync_url(self, url: str | None) -> None:
|
def set_custom_sync_url(self, url: str | None) -> None:
|
||||||
self.set_current_sync_url(None)
|
if url != self.custom_sync_url():
|
||||||
self.profile["customSyncUrl"] = url
|
self.set_current_sync_url(None)
|
||||||
|
self.profile["customSyncUrl"] = url
|
||||||
|
|
||||||
def auto_sync_media_minutes(self) -> int:
|
def auto_sync_media_minutes(self) -> int:
|
||||||
return self.profile.get("autoSyncMediaMinutes", 15)
|
return self.profile.get("autoSyncMediaMinutes", 15)
|
||||||
|
|
Loading…
Reference in a new issue