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:
2026-03-19 21:32:16 +10:00
co-authored by Claude Sonnet 4.6
parent a1e7e66ae1
commit 3cba8552cf
2 changed files with 4 additions and 7 deletions
+3 -6
View File
@@ -108,12 +108,9 @@ function createWindow() {
mainWindow.show();
});
// Close → hide to tray (don't quit)
mainWindow.on('close', (event) => {
if (!isQuitting) {
event.preventDefault();
mainWindow.hide();
}
// Close → quit app (no tray)
mainWindow.on('close', () => {
isQuitting = true;
});
mainWindow.on('closed', () => {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "odo",
"version": "0.9.4",
"version": "0.9.5",
"description": "ODO — OpenClaw Dashboard Orchestrator",
"main": "main.js",
"scripts": {