updates to bus mode cache

add a separate bus mode cache for each interface.

add property objects to config frame for setting/getting from bus mode cache.

update function update_bus_modes to fit changes to bus mode cache
This commit is contained in:
onyx-and-iris
2022-04-26 20:59:00 +01:00
parent 4fb7a88855
commit 80340ac219
3 changed files with 31 additions and 19 deletions

View File

@@ -394,9 +394,9 @@ class ChannelFrame(ttk.Frame):
def update_bus_modes(self):
[
self._parent.bus_modes[i].set(
labelframe.config_frame.bus_mode_current.get()
)
self._parent.bus_modes_cache[
"vban" if _base_vals.vban_connected else "vmr"
][i].set(labelframe.config_frame.bus_mode)
for i, labelframe in enumerate(self.labelframes)
if labelframe is not None and labelframe.config_frame
]