Fixed vessel change code in native gui

This commit is contained in:
thooge committed 2026-11-12 19:34:59 +01:00
1 parent 09387280fc
commit db74fb6970
16 files changed
+192 -33

No files matched your search

+6
View File
@@ -60,6 +60,7 @@ class InventoryView(View):
self.context.subscribe("box_modified", self.box_modified)
self.context.subscribe("equipment_modified", self.equipment_modified)
self.context.subscribe("dd_invcat_modified", self.category_modified)
self.context.subscribe("vessel_modified", self.vessel_modified)
def load_list(self):
selected_id = treeview.get_value(self.tree['inventory'])
@@ -133,6 +134,11 @@ class InventoryView(View):
# not implemented
pass
def vessel_modified(self, eventtype, data):
self.tree['inventory'].get_selection().unselect_all()
self.load_list()
self.topwidget.set_visible_child(self.box['inventory'])
def on_page_activated(self):
print("Inventory activated")