use {Bus}.mode.get() to fetch current bus mode

vban-cmd dep bump

patch bump
This commit is contained in:
2024-07-05 18:06:22 +01:00
parent 6fa9bf7131
commit 198c08003e
3 changed files with 7 additions and 9 deletions

View File

@@ -241,9 +241,7 @@ class BusConfig(Config):
self.builder.create_param_buttons()
def current_bus_mode(self):
for mode in self.bus_modes:
if getattr(self.target.mode, mode):
return mode
return self.target.mode.get()
def rotate_bus_modes_right(self, *args):
current_mode = self.current_bus_mode()