Update menu.py

ensure submix menu state is set if switching kind on vban disconnect
This commit is contained in:
onyx-and-iris 2022-04-21 09:15:02 +01:00
parent a8b07ee8de
commit acb345fb30

View File

@ -302,6 +302,9 @@ class Menus(tk.Menu):
target_menu = getattr(self, f"menu_vban_{i+1}") target_menu = getattr(self, f"menu_vban_{i+1}")
target_menu.entryconfig(0, state="normal") target_menu.entryconfig(0, state="normal")
target_menu.entryconfig(1, state="disabled") target_menu.entryconfig(1, state="disabled")
self.menubar.entryconfig(
4, state=f"{'normal' if kind.name == 'Potato' else 'disabled'}"
)
self.after(15000, self.enable_vban_menus) self.after(15000, self.enable_vban_menus)