Compare commits

..

No commits in common. "5069db97da849b16d54f1757f34f5959748b75a7" and "8424558f3dadb08406bc3c2420852d8cccf89d2a" have entirely different histories.

2 changed files with 4 additions and 5 deletions

View File

@ -1,6 +1,6 @@
[project] [project]
name = "nvda_voicemeeter" name = "nvda_voicemeeter"
version = "0.1.3" version = "0.1.2"
description = "A Voicemeeter app compatible with NVDA" description = "A Voicemeeter app compatible with NVDA"
authors = [ authors = [
{ name = "onyx-and-iris", email = "code@onyxandiris.online" }, { 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): def popup_rename(self, message, title=None, tab=None):
if tab == "Physical Strip": if tab == "Physical Strip":
upper = self.kind.phys_in + 1 upper = self.kind.phys_out + 1
elif tab == "Virtual Strip": elif tab == "Virtual Strip":
upper = self.kind.virt_in + 1 upper = self.kind.virt_out + 1
elif tab == "Buses": elif tab == "Buses":
upper = self.kind.num_bus + 1 upper = self.kind.num_bus + 1
@ -323,8 +323,7 @@ class NVDAVMWindow(psg.Window):
self[f"STRIP {index}||LABEL"].update(value=label) self[f"STRIP {index}||LABEL"].update(value=label)
self.cache["labels"][f"STRIP {index}||LABEL"] = label self.cache["labels"][f"STRIP {index}||LABEL"] = label
case "Virtual Strip": case "Virtual Strip":
index += self.kind.phys_in label = data.get("Edit") or f"Virtual Input {index + 1}"
label = data.get("Edit") or f"Virtual Input {index - self.kind.phys_in + 1}"
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"][f"STRIP {index}||LABEL"] = label self.cache["labels"][f"STRIP {index}||LABEL"] = label