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 other.item_type == self.item_type:
|
||||||
if self.item_type == SidebarItemType.TAG:
|
if self.item_type == SidebarItemType.TAG:
|
||||||
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 in (
|
||||||
|
SidebarItemType.SAVED_SEARCH,
|
||||||
|
SidebarItemType.TODAY,
|
||||||
|
SidebarItemType.CARD_STATE,
|
||||||
|
):
|
||||||
return self.name == other.name
|
return self.name == other.name
|
||||||
elif self.item_type == SidebarItemType.NOTETYPE_TEMPLATE:
|
elif self.item_type == SidebarItemType.NOTETYPE_TEMPLATE:
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user