diff options
author | 2020-05-12 15:22:39 -0700 | |
---|---|---|
committer | 2020-05-12 22:22:39 +0000 | |
commit | 60ae68b9127def8dda4f75683794827bc28a119b (patch) | |
tree | c092f01e59e9a28329fefb6dce3f6f016735ad39 /src/index.js | |
parent | docs: add gabspeck as a contributor (#739) (diff) | |
download | ferdium-app-60ae68b9127def8dda4f75683794827bc28a119b.tar.gz ferdium-app-60ae68b9127def8dda4f75683794827bc28a119b.tar.zst ferdium-app-60ae68b9127def8dda4f75683794827bc28a119b.zip |
Restore window last closed maximize/fullscreen state (#733)
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.js b/src/index.js index 85aa9d1b9..484191f2e 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -152,8 +152,8 @@ const createWindow = () => { | |||
152 | const mainWindowState = windowStateKeeper({ | 152 | const mainWindowState = windowStateKeeper({ |
153 | defaultWidth: DEFAULT_WINDOW_OPTIONS.width, | 153 | defaultWidth: DEFAULT_WINDOW_OPTIONS.width, |
154 | defaultHeight: DEFAULT_WINDOW_OPTIONS.height, | 154 | defaultHeight: DEFAULT_WINDOW_OPTIONS.height, |
155 | maximize: false, | 155 | maximize: true, // Automatically maximizes the window, if it was last clsoed maximized |
156 | fullScreen: false, | 156 | fullScreen: true, // Automatically restores the window to full screen, if it was last closed full screen |
157 | }); | 157 | }); |
158 | 158 | ||
159 | let posX = mainWindowState.x || DEFAULT_WINDOW_OPTIONS.x; | 159 | let posX = mainWindowState.x || DEFAULT_WINDOW_OPTIONS.x; |