Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Commit

Permalink
fix(window): save maximized state
Browse files Browse the repository at this point in the history
Save the window state when the window is maximized so it's remembered until next time the window
opens.

fix #475
  • Loading branch information
kontrollanten committed Aug 19, 2020
1 parent 902de4e commit 10f156d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/helpers/window.js
Expand Up @@ -67,7 +67,7 @@ export default function (name, options) {
};

var saveState = function () {
if (!win.isMinimized() && !win.isMaximized()) {
if (!win.isMinimized()) {
Object.assign(state, getCurrentPosition());
}
userDataDir.write(stateStoreFile, state, { atomic: true });
Expand Down

0 comments on commit 10f156d

Please sign in to comment.