mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-10 20:30:48 +00:00
getInstallationStatufix: warning shown when closing app even if no ta… (#413)
This commit is contained in:
commit
42ea52e39a
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