mirror of
https://github.com/aclist/dztui.git
synced 2026-10-31 15:12:48 +01:00
feat: lan button WIP
This commit is contained in:
1 parent
10037b86d8
commit
e2ec093f67
9 files changed
+120
-26
No files matched your search
@@ -1,4 +1,4 @@
|
||||
from typing import TYPE_CHECKING
|
||||
from typing import Self, TYPE_CHECKING
|
||||
from dzgui.views.trees.tree_mods import ModTreeView
|
||||
|
||||
import gi
|
||||
@@ -17,3 +17,12 @@ class Mods(Gtk.ScrolledWindow):
|
||||
|
||||
self.add(self.tree)
|
||||
self.controller.register_widget("modtreeview", self.tree)
|
||||
|
||||
self.connect("map", self._on_map)
|
||||
self.connect("unmap", self._on_unmap)
|
||||
|
||||
def _on_unmap(self, widget: Self) -> None:
|
||||
self.controller.toggle_mod_panel(False)
|
||||
|
||||
def _on_map(self, widget: Self) -> None:
|
||||
self.controller.toggle_mod_panel(True)
|
||||
Reference in new issue
Block a user