Skip to content

Commit

Permalink
Merge pull request RocketChat#512 from RocketChat/windows-hidden-start
Browse files Browse the repository at this point in the history
Fix minimised start on Windows
  • Loading branch information
alexbrazier authored Aug 17, 2017
2 parents 6b11971 + ea92c73 commit 7fd942a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/background.custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,17 @@ export function afterMainWindow (mainWindow) {

app.on('activate', function () {
mainWindow.show();
mainWindowState.saveState(mainWindow);
});

mainWindow.webContents.on('will-navigate', function (event) {
event.preventDefault();
});

ipcMain.on('focus', () => mainWindow.show());
ipcMain.on('focus', () => {
mainWindow.show();
mainWindowState.saveState(mainWindow);
});

ipcMain.on('getSystemIdleTime', (event) => {
event.returnValue = idle.getIdleTime();
Expand Down

0 comments on commit 7fd942a

Please sign in to comment.