fix: add sleep to show update errors before reboot

This commit is contained in:
2026-07-11 10:53:03 +08:00
parent b0361fc366
commit 0186e14eb2
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -168,6 +168,10 @@ local function checkAndApplyUpdate()
isUpdating = false
pcall(drawReadyScreen)
if lastUpdateError then
sleep(3)
end
-- Reboot
os.reboot()
end
+4
View File
@@ -750,6 +750,10 @@ local function checkAndApplyUpdate()
isUpdating = false
pcall(drawVersionIndicator)
if lastUpdateError then
sleep(3)
end
os.reboot()
end