mirror of
https://github.com/vector-im/element-desktop.git
synced 2024-10-05 10:32:40 +00:00
Merge pull request #93 from vector-im/t3chguy/flush-on-update
Run before-quit on updates too to flush rageshake
This commit is contained in:
commit
be30a2fbab
1 changed files with 5 additions and 2 deletions
|
@ -790,12 +790,15 @@ app.on('activate', () => {
|
|||
mainWindow.show();
|
||||
});
|
||||
|
||||
app.on('before-quit', () => {
|
||||
function beforeQuit() {
|
||||
global.appQuitting = true;
|
||||
if (mainWindow) {
|
||||
mainWindow.webContents.send('before-quit');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
app.on('before-quit', beforeQuit);
|
||||
app.on('before-quit-for-update', beforeQuit);
|
||||
|
||||
app.on('second-instance', (ev, commandLine, workingDirectory) => {
|
||||
// If other instance launched with --hidden then skip showing window
|
||||
|
|
Loading…
Reference in a new issue