mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
lint fixes
This commit is contained in:
parent
aecce5a516
commit
6bf9f5bc6c
2 changed files with 2 additions and 2 deletions
|
@ -904,7 +904,7 @@ title="%s" %s>%s</button>""" % (
|
|||
def can_auto_sync(self) -> bool:
|
||||
return (
|
||||
self.pm.auto_syncing_enabled()
|
||||
and self.pm.sync_auth()
|
||||
and bool(self.pm.sync_auth())
|
||||
and not self.safeMode
|
||||
and not self.restoringBackup
|
||||
)
|
||||
|
|
|
@ -67,7 +67,7 @@ class TaskManager(QObject):
|
|||
on_done: Optional[Callable[[Future], None]] = None,
|
||||
parent: Optional[QWidget] = None,
|
||||
label: Optional[str] = None,
|
||||
immediate: Bool = False,
|
||||
immediate: bool = False,
|
||||
):
|
||||
self.mw.progress.start(parent=parent, label=label, immediate=immediate)
|
||||
|
||||
|
|
Loading…
Reference in a new issue