Disable renaming of no-flag item (#1467)

This commit is contained in:
RumovZ 2021-10-30 01:08:51 +02:00 committed by GitHub
parent 16ad0137f7
commit f15fe9cf86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -17,6 +17,7 @@ class SidebarItemType(Enum):
TODAY = auto()
FLAG_ROOT = auto()
FLAG = auto()
FLAG_NONE = auto()
CARD_STATE_ROOT = auto()
CARD_STATE = auto()
DECK_ROOT = auto()

View file

@ -706,7 +706,7 @@ class SidebarTreeView(QTreeView):
root.add_simple(
tr.browsing_no_flag(),
icon=icon_outline,
type=SidebarItemType.FLAG,
type=SidebarItemType.FLAG_NONE,
search_node=SearchNode(flag=SearchNode.FLAG_NONE),
)