fix: init hsc in all entries, explicit panel dismiss_on_outside_click, no-caps hint
This commit is contained in:
1 parent
087c28e40c
commit
2128311429
4 files changed
+20
No files matched your search
@@ -1,5 +1,10 @@
|
||||
local hsc = require("./lib/hsc.luau")
|
||||
|
||||
hsc.init({
|
||||
device = noctalia.getConfig("device"),
|
||||
mock = noctalia.getConfig("mock"),
|
||||
})
|
||||
|
||||
local state = {
|
||||
open = false,
|
||||
device = nil,
|
||||
@@ -197,6 +202,10 @@ local function render()
|
||||
}))
|
||||
end
|
||||
|
||||
if not (caps.chatmix or caps.sidetone or caps.equalizer_preset or caps.inactive_time or caps.noise_filter or caps.voice_prompts or caps.volume_limiter) then
|
||||
table.insert(rows, ui.label({ text = noctalia.tr("panel.no_caps"), opacity = 0.6 }))
|
||||
end
|
||||
|
||||
panel.render(ui.column({ gap = 12, padding = 16 }, rows))
|
||||
end
|
||||
|
||||
|
||||
@@ -65,6 +65,7 @@ entry = "panel.luau"
|
||||
width = 400
|
||||
height = 480
|
||||
placement = "floating"
|
||||
dismiss_on_outside_click = true
|
||||
|
||||
[[shortcut]]
|
||||
id = "sidetone"
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
local hsc = require("./lib/hsc.luau")
|
||||
|
||||
hsc.init({
|
||||
device = noctalia.getConfig("device"),
|
||||
mock = noctalia.getConfig("mock"),
|
||||
})
|
||||
|
||||
local on = false
|
||||
local battery = nil
|
||||
local capsSidetone = false
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
local hsc = require("./lib/hsc.luau")
|
||||
|
||||
hsc.init({
|
||||
device = noctalia.getConfig("device"),
|
||||
mock = noctalia.getConfig("mock"),
|
||||
})
|
||||
|
||||
local battery = { status = "BATTERY_UNAVAILABLE", level = -1 }
|
||||
local chatmix = 0
|
||||
local caps = {}
|
||||
|
||||
Reference in new issue
Block a user