mirror of
https://github.com/onyx-and-iris/voicemeeter-compact.git
synced 2026-04-18 13:33:30 +00:00
add bus_modes to App class for tracking bus modes
add bus_modes to App class for tracking bus modes
This commit is contained in:
@@ -280,8 +280,12 @@ class Bus(Channel):
|
||||
else:
|
||||
self.config_frame.grid(column=0, row=3, columnspan=4)
|
||||
self._parent._parent.channel_frame.reset_config_buttons(self)
|
||||
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.config_frame.destroy()
|
||||
|
||||
if not _base_vals.using_theme:
|
||||
@@ -388,6 +392,15 @@ class ChannelFrame(ttk.Frame):
|
||||
def identifier(self):
|
||||
return "strip" if self._is_strip else "bus"
|
||||
|
||||
def update_bus_modes(self):
|
||||
[
|
||||
self._parent.bus_modes[i].set(
|
||||
labelframe.config_frame.bus_mode_current.get()
|
||||
)
|
||||
for i, labelframe in enumerate(self.labelframes)
|
||||
if labelframe is not None and labelframe.config_frame
|
||||
]
|
||||
|
||||
def reset_config_buttons(self, current):
|
||||
if not _base_vals.using_theme:
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user