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
@@ -54,6 +54,7 @@ class ProvisionsView(View):
self.context.subscribe("box_modified", self.box_modified)
self.context.subscribe("dd_provcat_modified", self.category_modified)
self.context.subscribe("dd_provunit_modified", self.unit_modified)
self.context.subscribe("vessel_modified", self.vessel_modified)
def get_list_row(self):
return (
@@ -149,6 +150,11 @@ class ProvisionsView(View):
# not implemented
pass
def vessel_modified(self, eventtype, data):
self.tree['provisions'].get_selection().unselect_all()
self.load_list()
self.topwidget.set_visible_child(self.box['provisions'])
def clear_record(self):
self.prov.clear()
self.entry['name'].set_text('')