diff --git a/qt/aqt/browser/browser.py b/qt/aqt/browser/browser.py index ac2cdeb5d..7737a2ff7 100644 --- a/qt/aqt/browser/browser.py +++ b/qt/aqt/browser/browser.py @@ -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 diff --git a/qt/aqt/toolbar.py b/qt/aqt/toolbar.py index c4e11dfc7..a4b06a104 100644 --- a/qt/aqt/toolbar.py +++ b/qt/aqt/toolbar.py @@ -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})")