mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
fix rename/delete on current deck
This commit is contained in:
parent
c91d21e18e
commit
13aa6f99e4
1 changed files with 2 additions and 1 deletions
|
@ -815,12 +815,13 @@ class SidebarTreeView(QTreeView):
|
||||||
type=SidebarItemType.DECK_ROOT,
|
type=SidebarItemType.DECK_ROOT,
|
||||||
)
|
)
|
||||||
root.on_click = self._filter_func(SearchTerm(deck="*"))
|
root.on_click = self._filter_func(SearchTerm(deck="*"))
|
||||||
root.add_simple(
|
current = root.add_simple(
|
||||||
name=tr(TR.BROWSING_CURRENT_DECK),
|
name=tr(TR.BROWSING_CURRENT_DECK),
|
||||||
icon=icon,
|
icon=icon,
|
||||||
type=SidebarItemType.DECK,
|
type=SidebarItemType.DECK,
|
||||||
on_click=self._filter_func(SearchTerm(deck="current")),
|
on_click=self._filter_func(SearchTerm(deck="current")),
|
||||||
)
|
)
|
||||||
|
current.id = self.mw.col.decks.selected()
|
||||||
|
|
||||||
render(root, tree.children)
|
render(root, tree.children)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue