mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Satisfy formatter
This commit is contained in:
parent
67754494d2
commit
3e1b42bb62
2 changed files with 6 additions and 2 deletions
|
@ -607,7 +607,9 @@ where id in %s"""
|
|||
|
||||
def _on_preview_closed(self) -> None:
|
||||
if self.editor.web:
|
||||
self.editor.web.eval("document.getElementById('previewButton').classList.remove('highlighted')")
|
||||
self.editor.web.eval(
|
||||
"document.getElementById('previewButton').classList.remove('highlighted')"
|
||||
)
|
||||
self._previewer = None
|
||||
|
||||
# Card deletion
|
||||
|
|
|
@ -150,7 +150,9 @@ class Toolbar:
|
|||
|
||||
def set_sync_active(self, active: bool) -> None:
|
||||
method = "add" if active else "remove"
|
||||
self.web.eval(f"document.getElementById('sync-spinner').classList.{method}('spin')")
|
||||
self.web.eval(
|
||||
f"document.getElementById('sync-spinner').classList.{method}('spin')"
|
||||
)
|
||||
|
||||
def set_sync_status(self, status: SyncStatus) -> None:
|
||||
self.web.eval(f"updateSyncColor({status.required})")
|
||||
|
|
Loading…
Reference in a new issue