mirror of
https://github.com/onyx-and-iris/nvda-voicemeeter.git
synced 2024-11-22 10:00:46 +00:00
fixes bug when pressing F2 on settings tab
This commit is contained in:
parent
084177ea2d
commit
7357cacc30
@ -242,20 +242,20 @@ class NVDAVMWindow(psg.Window):
|
|||||||
tab = values["tabs"]
|
tab = values["tabs"]
|
||||||
if tab in ("Physical Strip", "Virtual Strip", "Buses"):
|
if tab in ("Physical Strip", "Virtual Strip", "Buses"):
|
||||||
data = self.popup_rename("Label", title=f"Rename {tab}", tab=tab)
|
data = self.popup_rename("Label", title=f"Rename {tab}", tab=tab)
|
||||||
if not data:
|
if not data:
|
||||||
continue
|
continue
|
||||||
index = int(data["Index"]) - 1
|
index = int(data["Index"]) - 1
|
||||||
match tab:
|
match tab:
|
||||||
case "Physical Strip" | "Virtual Strip":
|
case "Physical Strip" | "Virtual Strip":
|
||||||
label = data.get("Edit") or self.cache["labels"]["strip"][f"STRIP {index}||LABEL"]
|
label = data.get("Edit") or self.cache["labels"]["strip"][f"STRIP {index}||LABEL"]
|
||||||
self.vm.strip[index].label = label
|
self.vm.strip[index].label = label
|
||||||
self[f"STRIP {index}||LABEL"].update(value=label)
|
self[f"STRIP {index}||LABEL"].update(value=label)
|
||||||
self.cache["labels"]["strip"][f"STRIP {index}||LABEL"] = label
|
self.cache["labels"]["strip"][f"STRIP {index}||LABEL"] = label
|
||||||
case "Buses":
|
case "Buses":
|
||||||
label = data.get("Edit") or self.cache["labels"]["bus"][f"BUS {index}||LABEL"]
|
label = data.get("Edit") or self.cache["labels"]["bus"][f"BUS {index}||LABEL"]
|
||||||
self.vm.bus[index].label = label
|
self.vm.bus[index].label = label
|
||||||
self[f"BUS {index}||LABEL"].update(value=label)
|
self[f"BUS {index}||LABEL"].update(value=label)
|
||||||
self.cache["labels"]["bus"][f"BUS {index}||LABEL"] = label
|
self.cache["labels"]["bus"][f"BUS {index}||LABEL"] = label
|
||||||
|
|
||||||
# Menus
|
# Menus
|
||||||
case [["Restart", "Audio", "Engine"], ["MENU"]]:
|
case [["Restart", "Audio", "Engine"], ["MENU"]]:
|
||||||
|
Loading…
Reference in New Issue
Block a user