From acb345fb30f710614dfc933beea1694bb4c52a25 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Thu, 21 Apr 2022 09:15:02 +0100 Subject: [PATCH] Update menu.py ensure submix menu state is set if switching kind on vban disconnect --- vmcompact/menu.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vmcompact/menu.py b/vmcompact/menu.py index 56a7bc9..0e3a04a 100644 --- a/vmcompact/menu.py +++ b/vmcompact/menu.py @@ -302,6 +302,9 @@ class Menus(tk.Menu): target_menu = getattr(self, f"menu_vban_{i+1}") target_menu.entryconfig(0, state="normal") 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)