From d588a2154dc39ce47f2d12d0a7c933f0ab207a91 Mon Sep 17 00:00:00 2001 From: sudacode Date: Fri, 27 Feb 2026 21:35:41 -0800 Subject: [PATCH] fix(plugin): add auto-start option compatibility aliases --- plugin/subminer/lifecycle.lua | 13 ++++++++++++- plugin/subminer/process.lua | 6 +++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/plugin/subminer/lifecycle.lua b/plugin/subminer/lifecycle.lua index d3a99b3..a691ac0 100644 --- a/plugin/subminer/lifecycle.lua +++ b/plugin/subminer/lifecycle.lua @@ -18,10 +18,21 @@ function M.create(ctx) end) end + local function resolve_auto_start_enabled() + local raw_auto_start = opts.auto_start + if raw_auto_start == nil then + raw_auto_start = opts.auto_start_overlay + end + if raw_auto_start == nil then + raw_auto_start = opts["auto-start"] + end + return options_helper.coerce_bool(raw_auto_start, false) + end + local function on_file_loaded() aniskip.clear_aniskip_state() - local should_auto_start = options_helper.coerce_bool(opts.auto_start, false) + local should_auto_start = resolve_auto_start_enabled() if should_auto_start then process.start_overlay() -- Give the overlay process a moment to initialize before querying AniSkip. diff --git a/plugin/subminer/process.lua b/plugin/subminer/process.lua index 2386591..b76ba5a 100644 --- a/plugin/subminer/process.lua +++ b/plugin/subminer/process.lua @@ -100,7 +100,11 @@ function M.create(ctx) end local function resolve_visible_overlay_startup() - return options_helper.coerce_bool(opts.auto_start_visible_overlay, false) + local raw_visible_overlay = opts.auto_start_visible_overlay + if raw_visible_overlay == nil then + raw_visible_overlay = opts["auto-start-visible-overlay"] + end + return options_helper.coerce_bool(raw_visible_overlay, false) end local function apply_startup_overlay_preferences()