ELECTRON-730 (Implement aggressive refresh to optimize refresh) (#488)

* ELECTRON-730 - Implement aggressive refresh to optimize refresh

* ELECTRON-730 - Increase memory threshold to 800MB
This commit is contained in:
Kiran Niranjan
2018-09-01 16:35:53 +05:30
committed by Vishwas Shashidhar
parent c2ce4e9120
commit 96707907c7
6 changed files with 168 additions and 30 deletions

View File

@@ -216,6 +216,12 @@ function doCreateMainWindow(initialUrl, initialBounds, isCustomTitleBar) {
// event sent to renderer process to remove snack bar
mainWindow.webContents.send('window-leave-full-screen');
});
mainWindow.on('minimize', () => {
eventEmitter.emit('appMinimized');
});
mainWindow.on('restore', () => {
eventEmitter.emit('appRestored');
});
if (initialBounds) {
// maximizes the application if previously maximized