fix: disable context menu on custom mod tree

This commit is contained in:
aclist committed 2026-06-13 02:10:41 +09:00
1 parent f7a42e2cdb
commit 85f6fa053d
3 files changed
+7 -3

No files matched your search

+4 -2
View File
@@ -23,8 +23,10 @@ logger = logging.getLogger(APP_NAME)
class ModTreeView(ModsMixin, ContextMixin, TreeView): # type: ignore
def __init__(self, controller: "Controller") -> None:
super().__init__(controller, menu=ContextMenuGroup.MOD)
def __init__(
self, controller: "Controller", menu: ContextMenuGroup = ContextMenuGroup.MOD
) -> None:
super().__init__(controller, menu=menu)
self.controller = controller
self.mod_man = ModManager(self, controller)