fix(backgroundSyncTask): 移除机器更新的首页触发限制
移除原有的state和页面home检查,仅保留pendingMachineUpdate判断,允许在任意页面触发版本指示器更新。
This commit is contained in:
+1
-1
@@ -695,7 +695,7 @@ local function backgroundSyncTask()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if pendingMachineUpdate and state and tostring(state.page or 'home') == 'home' then
|
if pendingMachineUpdate then
|
||||||
isUpdating = true
|
isUpdating = true
|
||||||
lastUpdateError = nil
|
lastUpdateError = nil
|
||||||
pcall(drawVersionIndicator)
|
pcall(drawVersionIndicator)
|
||||||
|
|||||||
Reference in New Issue
Block a user