Skip to content

Commit 9a7abe4

Browse files
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.
1 parent dca59fc commit 9a7abe4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,10 @@ const createWindow = () => {
8686
if (!mainWindow.isMaximized()) {
8787
const { width: newWidth, height: newHeight } = mainWindow.getBounds();
8888
store.set('windowBounds', { width: newWidth, height: newHeight, x: mainWindow.getPosition()[0], y: mainWindow.getPosition()[1], isMaximized: false });
89+
frameMaximized = false;
8990
} else {
9091
store.set('windowBounds', { width, height, x, y, isMaximized: true });
92+
frameMaximized = true;
9193
}
9294
});
9395

0 commit comments

Comments
 (0)