We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d1f0a1 commit d0a0b30Copy full SHA for d0a0b30
app/electron/main.ts
@@ -1249,6 +1249,9 @@ function startElecron() {
1249
},
1250
});
1251
1252
+ // Set the main window reference in the MCP client for dialogs
1253
+ mcpClient.setMainWindow(mainWindow);
1254
+
1255
// Load the frontend
1256
mainWindow.loadURL(startUrl);
1257
@@ -1469,6 +1472,10 @@ function startElecron() {
1469
1472
if (mcpClient) {
1470
1473
mcpClient.cleanup().catch(console.error);
1471
1474
}
1475
+ // Cleanup MCP client
1476
+ if (mcpClient) {
1477
+ mcpClient.cleanup().catch(console.error);
1478
+ }
1479
1480
1481
0 commit comments