Skip to content

Commit cf27bb0

Browse files
authored
feat(openclaw): update openclaw version 223 (#149)
1 parent f32521b commit cf27bb0

5 files changed

Lines changed: 517 additions & 91 deletions

File tree

electron/main/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@ async function initialize(): Promise<void> {
165165
// Note: Auto-check for updates is driven by the renderer (update store init)
166166
// so it respects the user's "Auto-check for updates" setting.
167167

168-
// Windows: minimize to tray on close instead of quitting
168+
// Minimize to tray on close instead of quitting (macOS & Windows)
169169
mainWindow.on('close', (event) => {
170-
if (process.platform === 'win32' && !isQuitting) {
170+
if (!isQuitting) {
171171
event.preventDefault();
172172
mainWindow?.hide();
173173
}

electron/main/tray.ts

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,17 @@ export function createTray(mainWindow: BrowserWindow): Tray {
5959
// Set tooltip
6060
tray.setToolTip('ClawX - AI Assistant');
6161

62+
const showWindow = () => {
63+
if (mainWindow.isDestroyed()) return;
64+
mainWindow.show();
65+
mainWindow.focus();
66+
};
67+
6268
// Create context menu
6369
const contextMenu = Menu.buildFromTemplate([
6470
{
6571
label: 'Show ClawX',
66-
click: () => {
67-
mainWindow.show();
68-
mainWindow.focus();
69-
},
72+
click: showWindow,
7073
},
7174
{
7275
type: 'separator',
@@ -90,20 +93,23 @@ export function createTray(mainWindow: BrowserWindow): Tray {
9093
{
9194
label: 'Open Dashboard',
9295
click: () => {
96+
if (mainWindow.isDestroyed()) return;
9397
mainWindow.show();
9498
mainWindow.webContents.send('navigate', '/');
9599
},
96100
},
97101
{
98102
label: 'Open Chat',
99103
click: () => {
104+
if (mainWindow.isDestroyed()) return;
100105
mainWindow.show();
101106
mainWindow.webContents.send('navigate', '/chat');
102107
},
103108
},
104109
{
105110
label: 'Open Settings',
106111
click: () => {
112+
if (mainWindow.isDestroyed()) return;
107113
mainWindow.show();
108114
mainWindow.webContents.send('navigate', '/settings');
109115
},
@@ -116,6 +122,7 @@ export function createTray(mainWindow: BrowserWindow): Tray {
116122
{
117123
label: 'Check for Updates...',
118124
click: () => {
125+
if (mainWindow.isDestroyed()) return;
119126
mainWindow.webContents.send('update:check');
120127
},
121128
},
@@ -134,6 +141,7 @@ export function createTray(mainWindow: BrowserWindow): Tray {
134141

135142
// Click to show window (Windows/Linux)
136143
tray.on('click', () => {
144+
if (mainWindow.isDestroyed()) return;
137145
if (mainWindow.isVisible()) {
138146
mainWindow.hide();
139147
} else {
@@ -144,6 +152,7 @@ export function createTray(mainWindow: BrowserWindow): Tray {
144152

145153
// Double-click to show window (Windows)
146154
tray.on('double-click', () => {
155+
if (mainWindow.isDestroyed()) return;
147156
mainWindow.show();
148157
mainWindow.focus();
149158
});

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"framer-motion": "^12.34.2",
6363
"i18next": "^25.8.11",
6464
"lucide-react": "^0.563.0",
65-
"openclaw": "2026.2.19",
65+
"openclaw": "2026.2.23",
6666
"react": "^19.2.4",
6767
"react-dom": "^19.2.4",
6868
"react-i18next": "^16.5.4",
@@ -107,4 +107,4 @@
107107
"zx": "^8.8.5"
108108
},
109109
"packageManager": "pnpm@10.29.2+sha512.bef43fa759d91fd2da4b319a5a0d13ef7a45bb985a3d7342058470f9d2051a3ba8674e629672654686ef9443ad13a82da2beb9eeb3e0221c87b8154fff9d74b8"
110-
}
110+
}

0 commit comments

Comments
 (0)