mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 22:52:42 +01:00
feat: delegate to model manager
This commit is contained in:
1 parent
9bd2a0cac7
commit
016f3ac6c9
3 files changed
+65
-54
No files matched your search
+2
-8
@@ -508,17 +508,11 @@ class Notebook(ScrollableMixin, Gtk.Notebook):
|
||||
crumbs = enum.dict["crumbs"]
|
||||
MainController.set_crumbs(crumbs)
|
||||
|
||||
if enum is NotebookPage.MODS:
|
||||
return
|
||||
|
||||
# NOTE: Main Menu and Help page are of the same type
|
||||
# TODO: going to be deprecated after server notebook is added
|
||||
if enum is not NotebookPage.MAIN:
|
||||
return
|
||||
|
||||
# FIXME: brittle
|
||||
if crumbs == "Main menu":
|
||||
if AppNav.treeview.get_model()[0][0] == MainController.help_store[0][0]:
|
||||
MainController.set_crumbs("Help")
|
||||
MainController.set_help_menu_crumbs()
|
||||
|
||||
row = MAIN_MENU_ROWS[0]
|
||||
AppNav.grid.statusbar.refresh(row)
|
||||
|
||||
Reference in new issue
Block a user