Fix id check for today
and card state
items
This commit is contained in:
parent
8942677c4b
commit
19a36414e8
@ -138,7 +138,11 @@ class SidebarItem:
|
||||
if other.item_type == self.item_type:
|
||||
if self.item_type == SidebarItemType.TAG:
|
||||
return self.full_name == other.full_name
|
||||
elif self.item_type == SidebarItemType.SAVED_SEARCH:
|
||||
elif self.item_type in (
|
||||
SidebarItemType.SAVED_SEARCH,
|
||||
SidebarItemType.TODAY,
|
||||
SidebarItemType.CARD_STATE,
|
||||
):
|
||||
return self.name == other.name
|
||||
elif self.item_type == SidebarItemType.NOTETYPE_TEMPLATE:
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user