From d63ef60f1f1dc7c842e22ce1c9e854d4e1c786ad Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Tue, 26 Apr 2022 21:29:27 +0100 Subject: [PATCH] Update channels.py update open_config() in bus class to update bus_mode_cache when config frame is closed --- vmcompact/channels.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vmcompact/channels.py b/vmcompact/channels.py index 6dfd14d..7b787f1 100644 --- a/vmcompact/channels.py +++ b/vmcompact/channels.py @@ -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: