From 9a7abe4c9b318184d403fe7bd62a57c3a9f29e98 Mon Sep 17 00:00:00 2001 From: programmingKyle <155344874+programmingKyle@users.noreply.github.com> Date: Sat, 11 May 2024 15:01:42 -0400 Subject: [PATCH] Fix Frame Maximize - When user maximized the window and then moved it (unmaximizing it) they would have to click the maximize button twice for it to maximize again. --- src/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.js b/src/index.js index e50e2ce..6d9ff21 100644 --- a/src/index.js +++ b/src/index.js @@ -86,8 +86,10 @@ const createWindow = () => { if (!mainWindow.isMaximized()) { const { width: newWidth, height: newHeight } = mainWindow.getBounds(); store.set('windowBounds', { width: newWidth, height: newHeight, x: mainWindow.getPosition()[0], y: mainWindow.getPosition()[1], isMaximized: false }); + frameMaximized = false; } else { store.set('windowBounds', { width, height, x, y, isMaximized: true }); + frameMaximized = true; } });