Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1493,6 +1493,12 @@ if (!gotSingleInstanceLock) {
});

app.on('activate', () => {
// macOS can deliver 'activate' before Electron's own 'ready' event fires
// (e.g. cold launch via Dock). The whenReady().then() path below already
// creates the initial window once ready, so just no-op here until then -
// mirrors the same guard already used in the second-instance/open-url
// handlers above.
if (!app.isReady()) return;
rewarmParakeet('activate');
if (mainWindow) {
if (mainWindow.isMinimized()) mainWindow.restore();
Expand Down
Loading