mirror of
https://github.com/onyx-and-iris/nvda-voicemeeter.git
synced 2026-04-19 07:43:30 +00:00
remove asio devices from hardware out context menus
if not A1 removes `-remove device selection-` from hardware out A1 context menu patch bump fixes #7
This commit is contained in:
@@ -17,8 +17,12 @@ def get_input_device_list(vm) -> list:
|
||||
return ["{type}: {name}".format(**vm.device.input(i)) for i in range(vm.device.ins)]
|
||||
|
||||
|
||||
def get_output_device_list(vm) -> list:
|
||||
return ["{type}: {name}".format(**vm.device.output(i)) for i in range(vm.device.outs)]
|
||||
def get_output_device_list(i, vm) -> list:
|
||||
devices = ["{type}: {name}".format(**vm.device.output(j)) for j in range(vm.device.outs)]
|
||||
if i == 0:
|
||||
return devices
|
||||
devices.append("- remove device selection -")
|
||||
return [device for device in devices if not device.startswith("asio")]
|
||||
|
||||
|
||||
def get_patch_composite_list(kind) -> list:
|
||||
|
||||
Reference in New Issue
Block a user