From 5069db97da849b16d54f1757f34f5959748b75a7 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sun, 10 Sep 2023 14:32:31 +0100 Subject: [PATCH] ensure Virtual Input gets correct label if cleared --- src/nvda_voicemeeter/window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvda_voicemeeter/window.py b/src/nvda_voicemeeter/window.py index ffc330e..d677716 100644 --- a/src/nvda_voicemeeter/window.py +++ b/src/nvda_voicemeeter/window.py @@ -324,7 +324,7 @@ class NVDAVMWindow(psg.Window): 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}" + label = data.get("Edit") or f"Virtual Input {index - self.kind.phys_in + 1}" self.vm.strip[index].label = label self[f"STRIP {index}||LABEL"].update(value=label) self.cache["labels"][f"STRIP {index}||LABEL"] = label