From bbd4358177de347209edca4fa2fed75c37fa1e6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=B1=BC=E5=BC=80=E5=8F=91?= Date: Fri, 15 May 2026 18:18:09 +0800 Subject: [PATCH] fix(ui): suppress update dialog during checking phase Remove 'checking' from the render condition to prevent the dialog from flashing briefly when auto-checking for updates on app startup. --- tauri-app/src/components/UpdateDialog/UpdateDialog.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tauri-app/src/components/UpdateDialog/UpdateDialog.tsx b/tauri-app/src/components/UpdateDialog/UpdateDialog.tsx index 21ec9a5..2d657c8 100644 --- a/tauri-app/src/components/UpdateDialog/UpdateDialog.tsx +++ b/tauri-app/src/components/UpdateDialog/UpdateDialog.tsx @@ -38,7 +38,9 @@ export default function UpdateDialog() { return () => clearTimeout(timer); }, [check]); - if (!hasUpdate && !checking && !downloading && !installing && !error) { + // 只在有实质内容时显示弹窗:发现更新 / 正在下载 / 安装完成 / 出错 + // checking 阶段不显示,避免一闪而过的白屏/loading + if (!hasUpdate && !downloading && !installing && !error) { return null; }