Generate preload cache from live app

This commit is contained in:
Fedor Indutny 2024-09-08 16:26:12 -07:00 committed by GitHub
commit 3dba3a07f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 57 additions and 69 deletions

View file

@ -2567,6 +2567,9 @@ ipc.on('restart', () => {
app.quit();
});
ipc.on('shutdown', () => {
if (process.env.GENERATE_PRELOAD_CACHE) {
windowState.markReadyForShutdown();
}
app.quit();
});