mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-12 22:31:58 +00:00
getInstallationStatufix: warning shown when closing app even if no tasks are runnings
This commit is contained in:
parent
3c93cf6ea4
commit
8e84becf89
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue