From 8e84becf8904bdabe68d59d105a8280e430b6e6a Mon Sep 17 00:00:00 2001 From: sw3205933776 <3205933776@qq.com> Date: Mon, 29 Sep 2025 16:29:36 +0800 Subject: [PATCH] getInstallationStatufix: warning shown when closing app even if no tasks are runnings --- src/components/Layout/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Layout/index.tsx b/src/components/Layout/index.tsx index 685531bfe..525fcbc8b 100644 --- a/src/components/Layout/index.tsx +++ b/src/components/Layout/index.tsx @@ -18,7 +18,7 @@ const Layout = () => { useEffect(() => { const handleBeforeClose = () => { const currentStatus = chatStore.tasks[chatStore.activeTaskId as string]?.status; - if(["pending", "running", "pause"].includes(currentStatus)) { + if(["running", "pause"].includes(currentStatus)) { setNoticeOpen(true); } else { window.electronAPI.closeWindow(true);