mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
Disable renaming of no-flag item (#1467)
This commit is contained in:
parent
16ad0137f7
commit
f15fe9cf86
2 changed files with 2 additions and 1 deletions
|
@ -17,6 +17,7 @@ class SidebarItemType(Enum):
|
||||||
TODAY = auto()
|
TODAY = auto()
|
||||||
FLAG_ROOT = auto()
|
FLAG_ROOT = auto()
|
||||||
FLAG = auto()
|
FLAG = auto()
|
||||||
|
FLAG_NONE = auto()
|
||||||
CARD_STATE_ROOT = auto()
|
CARD_STATE_ROOT = auto()
|
||||||
CARD_STATE = auto()
|
CARD_STATE = auto()
|
||||||
DECK_ROOT = auto()
|
DECK_ROOT = auto()
|
||||||
|
|
|
@ -706,7 +706,7 @@ class SidebarTreeView(QTreeView):
|
||||||
root.add_simple(
|
root.add_simple(
|
||||||
tr.browsing_no_flag(),
|
tr.browsing_no_flag(),
|
||||||
icon=icon_outline,
|
icon=icon_outline,
|
||||||
type=SidebarItemType.FLAG,
|
type=SidebarItemType.FLAG_NONE,
|
||||||
search_node=SearchNode(flag=SearchNode.FLAG_NONE),
|
search_node=SearchNode(flag=SearchNode.FLAG_NONE),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue