getInstallationStatufix: warning shown when closing app even if no ta… (#413)

This commit is contained in:
Wendong-Fan 2025-09-29 16:41:45 +08:00 committed by GitHub
commit 42ea52e39a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);