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)