Skip to content

Commit

Permalink
Fix minimised start on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbrazier committed Aug 16, 2017
1 parent 4aa86dc commit ea92c73
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 @@ -114,13 +114,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 ea92c73

Please sign in to comment.