Avoid resetting current endpoint when custom endpoint has not changed

This commit is contained in:
Damien Elmes 2023-01-19 18:54:46 +10:00
parent c9493763d7
commit 93fc16dbf6

View file

@ -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)