Skip to content

Commit

Permalink
Don't save window state when maximized
Browse files Browse the repository at this point in the history
  • Loading branch information
szwacz committed Mar 28, 2016
1 parent 0f2f935 commit ed61768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default function (name, options) {
};

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

0 comments on commit ed61768

Please sign in to comment.