mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-05-26 00:55:16 -07:00
migrate subtitle style config to CSS declaration shape
- Flat style keys (fontFamily, fontSize, hoverTokenColor, etc.) consolidated into subtitleStyle.css, secondary.css, and subtitleSidebar.css objects - Hover token colors migrated to --subtitle-hover-token-color CSS custom properties - Plugin app-ping now checks result.status (0=running, 1=stopped) to avoid treating transient failures as stopped - Note-fields note type picker defaults to configured deck's note type before falling back to Kiku/Lapis - New migration for legacy ankiConnect N+1 config paths
This commit is contained in:
@@ -321,8 +321,11 @@ function M.create(ctx)
|
||||
|
||||
local function wait_for_app_ping_state(expected_running, label, on_ready, on_timeout, attempt)
|
||||
attempt = attempt or 1
|
||||
run_control_command_async("app-ping", nil, function(ok)
|
||||
if ok == expected_running then
|
||||
run_control_command_async("app-ping", nil, function(_ok, result)
|
||||
local status = result and result.status
|
||||
local is_running = status == 0
|
||||
local is_not_running = status == 1
|
||||
if (expected_running and is_running) or ((not expected_running) and is_not_running) then
|
||||
on_ready()
|
||||
return
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user