mirror of
https://github.com/onyx-and-iris/nvda-voicemeeter.git
synced 2024-11-22 10:00:46 +00:00
pass only KIND_ID to draw()
This commit is contained in:
parent
a0c854d53f
commit
c1fe70c387
@ -9,5 +9,5 @@ logging.basicConfig(level=logging.DEBUG)
|
|||||||
KIND_ID = "potato"
|
KIND_ID = "potato"
|
||||||
|
|
||||||
with voicemeeterlib.api(KIND_ID, sync=True) as vm:
|
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()
|
window.run()
|
||||||
|
@ -249,6 +249,6 @@ class NVDAVMWindow(psg.Window):
|
|||||||
self.logger.debug(f"parsed::{parsed_cmd}")
|
self.logger.debug(f"parsed::{parsed_cmd}")
|
||||||
|
|
||||||
|
|
||||||
def request_window_object(title, vm):
|
def request_window_object(kind_id, vm):
|
||||||
NVDAVMWindow_cls = NVDAVMWindow
|
NVDAVMWindow_cls = NVDAVMWindow
|
||||||
return NVDAVMWindow_cls(title, vm)
|
return NVDAVMWindow_cls(f"Voicemeeter {kind_id.capitalize()} NVDA", vm)
|
||||||
|
Loading…
Reference in New Issue
Block a user