fixes bug renaming virtual strips.

patch bump
This commit is contained in:
onyx-and-iris 2023-09-10 14:23:34 +01:00
parent 8424558f3d
commit 681bf8e85c
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
[project]
name = "nvda_voicemeeter"
version = "0.1.2"
version = "0.1.3"
description = "A Voicemeeter app compatible with NVDA"
authors = [
{ name = "onyx-and-iris", email = "code@onyxandiris.online" },

View File

@ -237,9 +237,9 @@ class NVDAVMWindow(psg.Window):
def popup_rename(self, message, title=None, tab=None):
if tab == "Physical Strip":
upper = self.kind.phys_out + 1
upper = self.kind.phys_in + 1
elif tab == "Virtual Strip":
upper = self.kind.virt_out + 1
upper = self.kind.virt_in + 1
elif tab == "Buses":
upper = self.kind.num_bus + 1
@ -323,6 +323,7 @@ class NVDAVMWindow(psg.Window):
self[f"STRIP {index}||LABEL"].update(value=label)
self.cache["labels"][f"STRIP {index}||LABEL"] = label
case "Virtual Strip":
index += self.kind.phys_in
label = data.get("Edit") or f"Virtual Input {index + 1}"
self.vm.strip[index].label = label
self[f"STRIP {index}||LABEL"].update(value=label)