mirror of
https://github.com/onyx-and-iris/nvda-voicemeeter.git
synced 2024-11-25 03:10:50 +00:00
update default values for each driver type
open advanced settings popup if current tab is settings. minor version bump
This commit is contained in:
parent
245476adfd
commit
bfdc0306e3
@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "nvda_voicemeeter"
|
||||
version = "0.1.5"
|
||||
version = "0.2.0"
|
||||
description = "A Voicemeeter app compatible with NVDA"
|
||||
authors = [
|
||||
{ name = "onyx-and-iris", email = "code@onyxandiris.online" },
|
||||
|
@ -168,6 +168,7 @@ class NVDAVMWindow(psg.Window):
|
||||
|
||||
# Advanced Settings
|
||||
if self.kind.name != "basic":
|
||||
self["ADVANCED SETTINGS"].bind("<FocusIn>", "||FOCUS IN")
|
||||
self["ADVANCED SETTINGS"].bind("<Return>", "||KEY ENTER")
|
||||
|
||||
# Strip Params
|
||||
@ -297,8 +298,11 @@ class NVDAVMWindow(psg.Window):
|
||||
]
|
||||
return psg.Frame("BUFFERING", buffer)
|
||||
|
||||
buffer_frame = _make_buffering_frame()
|
||||
layout = [[buffer_frame], [psg.Button("Exit")]]
|
||||
layout = []
|
||||
steps = (_make_buffering_frame,)
|
||||
for step in steps:
|
||||
layout.append([step()])
|
||||
layout.append([psg.Button("Exit", size=(8, 2))])
|
||||
|
||||
window = psg.Window(title, layout, finalize=True)
|
||||
buttonmenu_opts = {"takefocus": 1, "highlightthickness": 1}
|
||||
@ -318,6 +322,11 @@ class NVDAVMWindow(psg.Window):
|
||||
match parsed_cmd := self.parser.match.parseString(event):
|
||||
case ["BUFFER MME" | "BUFFER WDM" | "BUFFER KS" | "BUFFER ASIO"]:
|
||||
if values[event] == "Default":
|
||||
if "MME" in event:
|
||||
val = 1024
|
||||
elif "WDM" in event or "KS" in event:
|
||||
val = 512
|
||||
else:
|
||||
val = 0
|
||||
else:
|
||||
val = int(values[event])
|
||||
@ -546,7 +555,10 @@ class NVDAVMWindow(psg.Window):
|
||||
|
||||
# Advanced Settings
|
||||
case ["ADVANCED SETTINGS"] | ["CTRL-A"]:
|
||||
if values["tabs"] == "Settings":
|
||||
self.popup_advanced_settings(title="Advanced Settings")
|
||||
case [["ADVANCED", "SETTINGS"], ["FOCUS", "IN"]]:
|
||||
self.nvda.speak("ADVANCED SETTINGS")
|
||||
case [["ADVANCED", "SETTINGS"], ["KEY", "ENTER"]]:
|
||||
self.find_element_with_focus().click()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user