mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-31 13:39:58 +01:00
Run before-quit on updates too to flush rageshake
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
b543a2e496
commit
66d9204578
@ -790,12 +790,15 @@ app.on('activate', () => {
|
|||||||
mainWindow.show();
|
mainWindow.show();
|
||||||
});
|
});
|
||||||
|
|
||||||
app.on('before-quit', () => {
|
function beforeQuit() {
|
||||||
global.appQuitting = true;
|
global.appQuitting = true;
|
||||||
if (mainWindow) {
|
if (mainWindow) {
|
||||||
mainWindow.webContents.send('before-quit');
|
mainWindow.webContents.send('before-quit');
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
|
|
||||||
|
app.on('before-quit', beforeQuit);
|
||||||
|
app.on('before-quit-for-update', beforeQuit);
|
||||||
|
|
||||||
app.on('second-instance', (ev, commandLine, workingDirectory) => {
|
app.on('second-instance', (ev, commandLine, workingDirectory) => {
|
||||||
// If other instance launched with --hidden then skip showing window
|
// If other instance launched with --hidden then skip showing window
|
||||||
|
Loading…
x
Reference in New Issue
Block a user