Update channels.py

update open_config() in bus class to update bus_mode_cache when config frame is closed
This commit is contained in:
onyx-and-iris 2022-04-26 21:29:27 +01:00
parent 80340ac219
commit d63ef60f1f

View File

@ -283,9 +283,9 @@ class Bus(Channel):
self._parent._parent.bus_frame.update_bus_modes()
self._parent._parent.bus_frame.reset_config_buttons(self)
else:
self._parent._parent.bus_modes[self.index].set(
self.config_frame.bus_mode_current.get()
)
self._parent._parent.bus_modes_cache[
"vban" if _base_vals.vban_connected else "vmr"
][self.index].set(self.config_frame.bus_mode)
self.config_frame.destroy()
if not _base_vals.using_theme: