Skip to content

Commit

Permalink
Merge branch 'main' into neilenns/kSetStationStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
neilenns committed May 26, 2024
2 parents b623b60 + 2d0a722 commit 3d47f14
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,11 @@ const createWindow = (): void => {
return;
}
}

store.set("bounds", mainWindow.getBounds());
const bounds = mainWindow.getBounds();
const minSize = mainWindow.getMinimumSize();
if (bounds.width > minSize[0] && bounds.height > minSize[1]) {
store.set("bounds", bounds); // We only save the bounds if the window is not in mini mode
}
});

mainWindow.webContents.on("before-input-event", (e, input) => {
Expand Down

0 comments on commit 3d47f14

Please sign in to comment.