Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: restart by edit code, but error code: 3221226525 #3533

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@
}
});

app.on('before-quit', () => {
// fix: restart by edit code, but error: [electronmon] app exited with code 3221226525, waiting for change to restart it
for (const window of BrowserWindow.getAllWindows()) {

Check failure on line 129 in src/main/main.ts

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest)

iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations
window.webContents.closeDevTools()

Check failure on line 130 in src/main/main.ts

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest)

Insert `;`
window.close();
}
});

app
.whenReady()
.then(() => {
Expand Down