ELECTRON-870 - Revert back to old memory refresh logic

This commit is contained in:
Kiran Niranjan
2018-10-25 14:43:22 +05:30
committed by José Alves Durand Neto
parent 4737a9135f
commit 2871cb5c90
3 changed files with 11 additions and 76 deletions

View File

@@ -214,12 +214,6 @@ 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