mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-03 05:23:17 +00:00
Do not auto-reload app when system comes back from sleep.
Improves #412, #312.
This commit is contained in:
@@ -166,10 +166,11 @@ app.on('ready', () => {
|
||||
crashHandler();
|
||||
});
|
||||
|
||||
electron.powerMonitor.on('resume', () => {
|
||||
mainWindow.reload();
|
||||
page.send('destroytray');
|
||||
});
|
||||
// Temporarily remove this event
|
||||
// electron.powerMonitor.on('resume', () => {
|
||||
// mainWindow.reload();
|
||||
// page.send('destroytray');
|
||||
// });
|
||||
|
||||
ipcMain.on('focus-app', () => {
|
||||
mainWindow.show();
|
||||
|
||||
Reference in New Issue
Block a user