mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Fix restoring current sidebar element for cards
This commit is contained in:
parent
4c2a598be4
commit
af50db9fd3
1 changed files with 5 additions and 0 deletions
|
@ -140,6 +140,11 @@ class SidebarItem:
|
||||||
return self.full_name == other.full_name
|
return self.full_name == other.full_name
|
||||||
elif self.item_type == SidebarItemType.SAVED_SEARCH:
|
elif self.item_type == SidebarItemType.SAVED_SEARCH:
|
||||||
return self.name == other.name
|
return self.name == other.name
|
||||||
|
elif self.item_type == SidebarItemType.NOTETYPE_TEMPLATE:
|
||||||
|
return (
|
||||||
|
other.id == self.id
|
||||||
|
and other._parent_item.id == self._parent_item.id
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
return other.id == self.id
|
return other.id == self.id
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue