mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
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:
committed by
Vishwas Shashidhar
parent
c2ce4e9120
commit
96707907c7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user