[PM-7048] Disable relaunch on MAS (#8466)

This commit is contained in:
Oscar Hinton 2024-03-25 15:22:04 +01:00 committed by GitHub
parent bc9a888116
commit 8639f494f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -240,7 +240,11 @@ export class HelpMenu implements IMenubarMenu {
await this.desktopSettingsService.setHardwareAcceleration(
!this.hardwareAccelerationEnabled,
);
// `app.relaunch` crashes the app on Mac Store builds. Disabling it for now.
// https://github.com/electron/electron/issues/41690
if (!isMacAppStore()) {
app.relaunch();
}
app.exit();
},
},