mirror of
https://github.com/onyx-and-iris/nvda-voicemeeter.git
synced 2024-11-22 10:00:46 +00:00
strip outputs focus in event reads label if set
This commit is contained in:
parent
2354cc4501
commit
9d847cf01d
@ -167,13 +167,14 @@ class NVDAVMWindow(psg.Window):
|
||||
self.nvda.speak(f"Patch INSERT IN#{num} {channel} {'on' if val else 'off'}")
|
||||
|
||||
# Strip outputs
|
||||
case [["STRIP", "0"], [output]]:
|
||||
case [["STRIP", index], [output]]:
|
||||
val = not self.cache["outputs"][f"STRIP {index}||{output}"]
|
||||
setattr(self.vm.strip[int(index)], output, val)
|
||||
self.cache["outputs"][f"STRIP {index}||{output}"] = val
|
||||
case [["STRIP", index], [output], ["FOCUS", "IN"]]:
|
||||
val = self.cache["outputs"][f"STRIP {index}||{output}"]
|
||||
self.nvda.speak(f"STRIP {index} {output} {'on' if val else 'off'}")
|
||||
label = self.vm.strip[int(index)].label
|
||||
self.nvda.speak(f"STRIP {index} {output} {label if label else ''} {'on' if val else 'off'}")
|
||||
case _:
|
||||
self.logger.error(f"Unknown event {event}")
|
||||
self.logger.debug(parsed_cmd)
|
||||
|
Loading…
Reference in New Issue
Block a user