on_close_window() callback added.

cleanly shuts down vban connection on windows close
if vban connected.
This commit is contained in:
2023-08-06 23:15:54 +01:00
parent 6222ab1e62
commit bfb0482c32
2 changed files with 7 additions and 1 deletions

View File

@@ -227,7 +227,7 @@ class Menus(tk.Menu):
if fn := getattr(self.target.command, cmd):
fn()
if cmd == "shutdown":
self.parent.destroy()
self.parent.on_close_window()
def action_set_voicemeeter(self, cmd, val=True):
if cmd == "lock":