Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion apps/studio/src/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,14 @@ async function getAppMenu(
mainWindow &&
! mainWindow.isDestroyed()
) {
// The renderer is being replaced; it fetches fresh globals on boot,
// and asking the dying page to refresh fails IPC sender validation.
setTimeout( () => {
void loadMainWindowRenderer( mainWindow );
}, 0 );
} else {
void sendIpcEventToRenderer( 'refresh-app-globals' );
}
void sendIpcEventToRenderer( 'refresh-app-globals' );
},
} ) );

Expand Down
Loading