[PR #1206] [CLOSED] Hide ComfyUI instead of quitting when window is closed #1406

Closed
opened 2026-10-31 22:22:08 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Comfy-Org/desktop/pull/1206
Author: @crowecawcaw
Created: 6/22/2025
Status: ❌ Closed

Base: main ← Head: minimize


📝 Commits (7)

  • 482c7d9 Hide ComfyUI instead of quitting when window is closed
  • ddc55a6 Merge branch 'main' into minimize
  • ca17463 Merge branch 'main' into minimize
  • 90af9c4 Put close-to-background behind a new setting
  • b09cf6f Apply suggestions from code review
  • cd0cae3 Apply suggestions from code review
  • 99ecd76 Clean up unit tests

📊 Changes

4 files changed (+192 additions, -16 deletions)

View changed files

📝 src/main-process/appWindow.ts (+37 -12)
📝 src/main.ts (+19 -4)
📝 tests/unit/config/comfySettings.test.ts (+1 -0)
📝 tests/unit/main-process/appWindow.test.ts (+135 -0)

📄 Description

This change makes it more intuitive to keep ComfyUI running in the background. Previously, if the ComfyUI window was closed, the app quit. With this change, closing the window keeps ComfyUI running, and the window can be restored from the "Show Comfy Window" taskbar option. On a Mac, when the window is closed, the dock icon is also hidden.

Tested on Mac and Windows.

┆Issue is synchronized with this Notion page by Unito


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Comfy-Org/desktop/pull/1206 **Author:** [@crowecawcaw](https://github.com/crowecawcaw) **Created:** 6/22/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `minimize` --- ### 📝 Commits (7) - [`482c7d9`](https://github.com/Comfy-Org/desktop/commit/482c7d9c503cee403308aa14228e94ebb817f7b2) Hide ComfyUI instead of quitting when window is closed - [`ddc55a6`](https://github.com/Comfy-Org/desktop/commit/ddc55a6f5bb093f81b79dca47ea4d4a84d5fb0d2) Merge branch 'main' into minimize - [`ca17463`](https://github.com/Comfy-Org/desktop/commit/ca1746312e336a57a9bdd670605069875e32327a) Merge branch 'main' into minimize - [`90af9c4`](https://github.com/Comfy-Org/desktop/commit/90af9c404e01ca72ed734e9a891b86a6811cb649) Put close-to-background behind a new setting - [`b09cf6f`](https://github.com/Comfy-Org/desktop/commit/b09cf6f1d78d8bf15c8ee55f57ccbffddb548cfa) Apply suggestions from code review - [`cd0cae3`](https://github.com/Comfy-Org/desktop/commit/cd0cae3fd190145447bc8d82d2585d2363bcd2ff) Apply suggestions from code review - [`99ecd76`](https://github.com/Comfy-Org/desktop/commit/99ecd766dfb7fbb41732176a66e845b54759f96e) Clean up unit tests ### 📊 Changes **4 files changed** (+192 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `src/main-process/appWindow.ts` (+37 -12) 📝 `src/main.ts` (+19 -4) 📝 `tests/unit/config/comfySettings.test.ts` (+1 -0) 📝 `tests/unit/main-process/appWindow.test.ts` (+135 -0) </details> ### 📄 Description This change makes it more intuitive to keep ComfyUI running in the background. Previously, if the ComfyUI window was closed, the app quit. With this change, closing the window keeps ComfyUI running, and the window can be restored from the "Show Comfy Window" taskbar option. On a Mac, when the window is closed, the dock icon is also hidden. Tested on Mac and Windows. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-1206-Hide-ComfyUI-instead-of-quitting-when-window-is-closed-21a6d73d365081358824c46f0d4943b3) by [Unito](https://www.unito.io) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 22:22:08 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/desktop#1406
No description provided.