mirror of
https://github.com/onyx-and-iris/voicemeeter-compact.git
synced 2024-11-21 20:30:56 +00:00
ensure we don't attempt to delete a menu key twice
patch bump
This commit is contained in:
parent
674999a461
commit
e4068277f7
@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "voicemeeter-compact"
|
||||
version = "1.8.2"
|
||||
version = "1.8.3"
|
||||
description = "A Compact Voicemeeter Remote App"
|
||||
authors = ["onyx-and-iris <code@onyxandiris.online>"]
|
||||
license = "MIT"
|
||||
|
@ -315,16 +315,21 @@ class Menus(tk.Menu):
|
||||
|
||||
def menu_teardown(self, i):
|
||||
# remove config load menus
|
||||
[
|
||||
self.menu_configs_load.delete(key)
|
||||
for key in self.target.configs.keys()
|
||||
if key not in self.config_defaults
|
||||
]
|
||||
[
|
||||
self.menu_configs_load.delete(key)
|
||||
for key in self.parent.userconfigs.keys()
|
||||
if key not in self.config_defaults
|
||||
]
|
||||
removed = []
|
||||
for key in self.target.configs.keys():
|
||||
if key not in self.config_defaults:
|
||||
try:
|
||||
self.menu_configs_load.delete(key)
|
||||
removed.append(key)
|
||||
except tk._tkinter.tclError as e:
|
||||
self.logger.warning(f"{type(e).__name__}: {e}")
|
||||
|
||||
for key in self.parent.userconfigs.keys():
|
||||
if key not in self.config_defaults and key not in removed:
|
||||
try:
|
||||
self.menu_configs_load.delete(key)
|
||||
except tk._tkinter.tclError as e:
|
||||
self.logger.warning(f"{type(e).__name__}: {e}")
|
||||
|
||||
[
|
||||
self.menu_vban.entryconfig(j, state="disabled")
|
||||
|
Loading…
Reference in New Issue
Block a user