From 962b61f60a91fbd347abb2e8cf274cf4c1257cfc Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Wed, 6 Sep 2023 15:27:55 +0100 Subject: [PATCH] fixes k, mc layout for banana kind --- src/nvda_voicemeeter/builder.py | 2 +- src/nvda_voicemeeter/window.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nvda_voicemeeter/builder.py b/src/nvda_voicemeeter/builder.py index 0727db1..959c41d 100644 --- a/src/nvda_voicemeeter/builder.py +++ b/src/nvda_voicemeeter/builder.py @@ -296,7 +296,7 @@ class Builder: for j in range(self.kind.phys_out + self.kind.virt_out) ] ) - if i == self.kind.phys_in + self.kind.virt_in - 2: + if i == self.kind.phys_in + 1: layout.append( [ psg.Button("K", size=(6, 2), key=f"STRIP {i}||MONO"), diff --git a/src/nvda_voicemeeter/window.py b/src/nvda_voicemeeter/window.py index bdd29c4..8a41127 100644 --- a/src/nvda_voicemeeter/window.py +++ b/src/nvda_voicemeeter/window.py @@ -506,7 +506,7 @@ class NVDAVMWindow(psg.Window): case "MONO": if int(index) < self.kind.phys_in: actual = param.lower() - elif int(index) == self.kind.phys_in + self.kind.virt_in - 2: + elif int(index) == self.kind.phys_in + 1: actual = "k" else: actual = "mc" @@ -536,7 +536,7 @@ class NVDAVMWindow(psg.Window): case "MONO": if int(index) < self.kind.phys_in: actual = param.lower() - elif int(index) == self.kind.phys_in + self.kind.virt_in - 2: + elif int(index) == self.kind.phys_in + 1: actual = "k" else: actual = "mc"