mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
fix .select() not handling string arguments
This commit is contained in:
parent
a16940a246
commit
8e0f00fbb9
1 changed files with 2 additions and 1 deletions
|
@ -448,7 +448,8 @@ class DeckManager:
|
|||
|
||||
def select(self, did: DeckID) -> None:
|
||||
"Select a new branch."
|
||||
# make sure arg is an int
|
||||
# make sure arg is an int; legacy callers may be passing in a string
|
||||
did = DeckID(did)
|
||||
current = self.selected()
|
||||
active = self.deck_and_child_ids(did)
|
||||
if current != did or active != self.active():
|
||||
|
|
Loading…
Reference in a new issue