nit: small change to give a choice (#620)

This commit is contained in:
Michael Neale
2025-01-16 12:53:44 +11:00
committed by GitHub
parent f4eeabc22a
commit 90ab608d12
+6 -6
View File
@@ -30,18 +30,18 @@ app.on('open-url', async (event, url) => {
const result = dialog.showMessageBoxSync({
type: 'question',
buttons: ['Yes', 'No'],
buttons: ['Add to new session', 'Add to any current sessions','Cancel'],
title: 'Add MCP system',
detail: `${description} ${website} ${system} ${args}`.trim(),
message: `Add extension to goose?`
});
if (result === 0) {
await createChat(app, undefined, undefined, undefined, url);
// Add the system
// Send message to all existing windows
//BrowserWindow.getAllWindows().forEach(window => {
// window.webContents.send('add-system', url);
//});
} else if (result === 1) {
BrowserWindow.getAllWindows().forEach(window => {
window.webContents.send('add-system', url);
});
}
})