mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-02 04:53:17 +00:00
Merge pull request #147 from Lplenka/sleepresume
[WIP]#143 Improve handling of coming back online with the desktop app
This commit is contained in:
@@ -347,6 +347,10 @@ app.on('ready', () => {
|
||||
appUpdater();
|
||||
}
|
||||
});
|
||||
electron.powerMonitor.on('resume', () => {
|
||||
mainWindow.reload();
|
||||
mainWindow.webContents.send('destroytray');
|
||||
});
|
||||
checkConnection();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user