From c1fe70c3870bccd1779edbf176697bb6a7eceaa0 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Mon, 28 Aug 2023 03:25:39 +0100 Subject: [PATCH] pass only KIND_ID to draw() --- __main__.py | 2 +- src/nvda_voicemeeter/window.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/__main__.py b/__main__.py index 023bd77..9d1af54 100644 --- a/__main__.py +++ b/__main__.py @@ -9,5 +9,5 @@ logging.basicConfig(level=logging.DEBUG) KIND_ID = "potato" with voicemeeterlib.api(KIND_ID, sync=True) as vm: - with nvda_voicemeeter.draw(f"Voicemeeter {KIND_ID.capitalize()} NVDA", vm) as window: + with nvda_voicemeeter.draw(KIND_ID, vm) as window: window.run() diff --git a/src/nvda_voicemeeter/window.py b/src/nvda_voicemeeter/window.py index aded34f..8283be2 100644 --- a/src/nvda_voicemeeter/window.py +++ b/src/nvda_voicemeeter/window.py @@ -249,6 +249,6 @@ class NVDAVMWindow(psg.Window): self.logger.debug(f"parsed::{parsed_cmd}") -def request_window_object(title, vm): +def request_window_object(kind_id, vm): NVDAVMWindow_cls = NVDAVMWindow - return NVDAVMWindow_cls(title, vm) + return NVDAVMWindow_cls(f"Voicemeeter {kind_id.capitalize()} NVDA", vm)