From 8aec9a43027725320d57d42aae8db3e215e067b3 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Tue, 5 Sep 2023 05:35:38 +0100 Subject: [PATCH] use get_channel_identifier_list for asio checkboxes --- src/nvda_voicemeeter/window.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/nvda_voicemeeter/window.py b/src/nvda_voicemeeter/window.py index e10a547..dca43b8 100644 --- a/src/nvda_voicemeeter/window.py +++ b/src/nvda_voicemeeter/window.py @@ -101,9 +101,8 @@ class NVDAVMWindow(psg.Window): self[key].update(value=value) for key, value in self.cache["asio"].items(): identifier, i = key.split("||") - in_num = int(int(i) / 2) + 1 - channel = int(i) % 2 - self[f"{identifier}||IN{in_num} {channel}"].update(value=value) + partial = get_channel_identifier_list(self.vm)[int(i)] + self[f"{identifier}||{partial}"].update(value=value) for key, value in self.cache["insert"].items(): identifier, i = key.split("||") partial = get_channel_identifier_list(self.vm)[int(i)]