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
@@ -35,6 +35,7 @@ class BoxesView(View):
# subscribe to data change events
self.context.subscribe("storage_modified", self.storage_modified)
self.context.subscribe("dd_boxtype_modified", self.boxtype_modified)
self.context.subscribe("vessel_modified", self.vessel_modified)
def get_list_row(self):
return (
@@ -96,6 +97,11 @@ class BoxesView(View):
# not implemented
pass
def vessel_modified(self, eventtype, data):
self.tree['box'].get_selection().unselect_all()
self.load_list()
self.topwidget.set_visible_child(self.box['box'])
def clear_record(self):
self.entry['label'].set_text('')
combobox.activate_row(self.combo['storage'], 1)