mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
Fix deck check and thus blue snyc arrow bug
Cast col.decks.selected() to int so the return type fits the annotation. Thus, fix the comparison in col.decks.select() which was leading to a superfluous db modification and in turn to a false indication of a necessary sync right after another one in certain cases.
This commit is contained in:
parent
398e7d7845
commit
9f18e12cb8
1 changed files with 1 additions and 1 deletions
|
@ -430,7 +430,7 @@ class DeckManager:
|
|||
|
||||
def selected(self) -> int:
|
||||
"The currently selected did."
|
||||
return self.col.conf["curDeck"]
|
||||
return int(self.col.conf["curDeck"])
|
||||
|
||||
def current(self) -> Deck:
|
||||
return self.get(self.selected())
|
||||
|
|
Loading…
Reference in a new issue