Skip to content

Commit

Permalink
Fix Frame Maximize
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
programmingKyle committed May 11, 2024
1 parent dca59fc commit 9a7abe4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
});

Expand Down

0 comments on commit 9a7abe4

Please sign in to comment.