aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Danny Qiu <dqiu55@gmail.com>2020-05-12 15:22:39 -0700
committerLibravatar GitHub <noreply@github.com>2020-05-12 22:22:39 +0000
commit60ae68b9127def8dda4f75683794827bc28a119b (patch)
treec092f01e59e9a28329fefb6dce3f6f016735ad39 /src
parentdocs: add gabspeck as a contributor (#739) (diff)
downloadferdium-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')
-rw-r--r--src/features/todos/components/TodosWebview.js2
-rw-r--r--src/index.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/features/todos/components/TodosWebview.js b/src/features/todos/components/TodosWebview.js
index 412013dcb..c612702b0 100644
--- a/src/features/todos/components/TodosWebview.js
+++ b/src/features/todos/components/TodosWebview.js
@@ -134,7 +134,7 @@ class TodosWebview extends Component {
134 const webViewInstance = this; 134 const webViewInstance = this;
135 this.webview.addEventListener('dom-ready', () => { 135 this.webview.addEventListener('dom-ready', () => {
136 webViewInstance.webview.setUserAgent(userAgent(true)); 136 webViewInstance.webview.setUserAgent(userAgent(true));
137 }) 137 });
138 } 138 }
139 139
140 startResize = (event) => { 140 startResize = (event) => {
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;