mirror of
https://github.com/onyx-and-iris/nvda-voicemeeter.git
synced 2024-11-22 10:00:46 +00:00
add guard clauses for nav binds
This commit is contained in:
parent
645361c731
commit
0c806b8e4c
@ -420,6 +420,8 @@ class NVDAVMWindow(psg.Window):
|
||||
key, index = bind.split("-")
|
||||
match values["tabgroup"]:
|
||||
case "tab||Physical Strip":
|
||||
if int(index) > self.kind.phys_in:
|
||||
continue
|
||||
self[f"STRIP {int(index) - 1}||A1"].set_focus()
|
||||
if (
|
||||
self.find_element_with_focus() is None
|
||||
@ -437,6 +439,8 @@ class NVDAVMWindow(psg.Window):
|
||||
):
|
||||
self[f"STRIP {int(index) - 1}||SLIDER GAIN"].set_focus()
|
||||
case "tab||Buses":
|
||||
if int(index) > self.kind.num_bus:
|
||||
continue
|
||||
self[f"BUS {int(index) - 1}||MONO"].set_focus()
|
||||
if (
|
||||
self.find_element_with_focus() is None
|
||||
|
Loading…
Reference in New Issue
Block a user