feat: 添加强制更新Lua脚本的配置并优化前端更新按钮

新增配置API的force_update字段返回与保存支持,更新终端Lua脚本逻辑以支持强制更新标记,同时简化前端更新按钮,移除模拟进度条并动态切换按钮状态与显示文本。
This commit is contained in:
2026-07-10 23:38:03 +08:00
parent 78f302381a
commit 8a78034ad3
6 changed files with 16 additions and 25 deletions
+1 -1
View File
@@ -681,7 +681,7 @@ local function backgroundSyncTask()
sleep(UPDATE_CHECK_INTERVAL)
pcall(refreshConfigOnce)
if type(cfg) == 'table' and type(cfg.force_update) == 'boolean' and cfg.force_update == true and versionMismatch == true then
if type(CFG) == 'table' and type(CFG.force_update) == 'boolean' and CFG.force_update == true and versionMismatch == true then
pendingMachineUpdate = true
end
end