Skip to content

Commit

Permalink
Desktop: Fixes #8591: Error while quitting the app (#8612)
Browse files Browse the repository at this point in the history
  • Loading branch information
hubertfilho committed Aug 4, 2023
1 parent 887c271 commit 6c2e0d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app-desktop/ElectronAppWrapper.ts
Expand Up @@ -174,7 +174,7 @@ export default class ElectronAppWrapper {
// so that it can tell us if we can really close the app or not.
// Search for "appClose" event for closing logic on renderer side.
event.preventDefault();
this.win_.webContents.send('appClose');
if (this.win_) this.win_.webContents.send('appClose');
} else {
// If the renderer process has responded, check if we can close or not
if (this.rendererProcessQuitReply_.canClose) {
Expand Down

0 comments on commit 6c2e0d9

Please sign in to comment.