Skip to content

Commit

Permalink
Fix window state not saving (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
mskelton authored Apr 9, 2019
1 parent fd2259f commit cf467fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default class WindowState {
const isFullScreen = this._window.isFullScreen()

this._state = { isFullScreen, isMaximized }
if (isMaximized || isFullScreen) {
if (!(isMaximized || isFullScreen)) {
this._state.bounds = this._window.getBounds()
}

Expand Down

0 comments on commit cf467fa

Please sign in to comment.