mirror of
https://github.com/dtzp555-max/odo.git
synced 2026-07-19 09:44:37 +00:00
fix: close window quits app instead of hiding to tray
No system tray is shown, so hiding the window on close left the app running with no way to quit except Ctrl+C. Now closing the window sets isQuitting=true and lets the normal close flow proceed, which triggers before-quit → stopServer(). Bumps version 0.9.4 → 0.9.5. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -108,12 +108,9 @@ function createWindow() {
|
|||||||
mainWindow.show();
|
mainWindow.show();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Close → hide to tray (don't quit)
|
// Close → quit app (no tray)
|
||||||
mainWindow.on('close', (event) => {
|
mainWindow.on('close', () => {
|
||||||
if (!isQuitting) {
|
isQuitting = true;
|
||||||
event.preventDefault();
|
|
||||||
mainWindow.hide();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
mainWindow.on('closed', () => {
|
mainWindow.on('closed', () => {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "odo",
|
"name": "odo",
|
||||||
"version": "0.9.4",
|
"version": "0.9.5",
|
||||||
"description": "ODO — OpenClaw Dashboard Orchestrator",
|
"description": "ODO — OpenClaw Dashboard Orchestrator",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user