pass only KIND_ID to draw()

This commit is contained in:
onyx-and-iris 2023-08-28 03:25:39 +01:00
parent a0c854d53f
commit c1fe70c387
2 changed files with 3 additions and 3 deletions

View File

@ -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()

View File

@ -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)