mirror of
https://github.com/onyx-and-iris/voicemeeter-compact.git
synced 2024-11-15 17:40:52 +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]
|
[tool.poetry]
|
||||||
name = "voicemeeter-compact"
|
name = "voicemeeter-compact"
|
||||||
version = "1.8.2"
|
version = "1.8.3"
|
||||||
description = "A Compact Voicemeeter Remote App"
|
description = "A Compact Voicemeeter Remote App"
|
||||||
authors = ["onyx-and-iris <code@onyxandiris.online>"]
|
authors = ["onyx-and-iris <code@onyxandiris.online>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
@ -315,16 +315,21 @@ class Menus(tk.Menu):
|
|||||||
|
|
||||||
def menu_teardown(self, i):
|
def menu_teardown(self, i):
|
||||||
# remove config load menus
|
# remove config load menus
|
||||||
[
|
removed = []
|
||||||
|
for key in self.target.configs.keys():
|
||||||
|
if key not in self.config_defaults:
|
||||||
|
try:
|
||||||
self.menu_configs_load.delete(key)
|
self.menu_configs_load.delete(key)
|
||||||
for key in self.target.configs.keys()
|
removed.append(key)
|
||||||
if key not in self.config_defaults
|
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)
|
self.menu_configs_load.delete(key)
|
||||||
for key in self.parent.userconfigs.keys()
|
except tk._tkinter.tclError as e:
|
||||||
if key not in self.config_defaults
|
self.logger.warning(f"{type(e).__name__}: {e}")
|
||||||
]
|
|
||||||
|
|
||||||
[
|
[
|
||||||
self.menu_vban.entryconfig(j, state="disabled")
|
self.menu_vban.entryconfig(j, state="disabled")
|
||||||
|
Loading…
Reference in New Issue
Block a user