Skip to content

Commit

Permalink
dont save small window bounds #124
Browse files Browse the repository at this point in the history
  • Loading branch information
juvirez committed Aug 18, 2022
1 parent 0b6c0a9 commit 402da3c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ app.on("ready", () => {

win.on("close", (e) => {
if (willQuitApp) {
store.set("window.bounds", win.getBounds());
const bounds = win.getBounds();
if (bounds.width > 400 && bounds.height > 200) {
store.set("window.bounds", bounds);
}
win = null;
} else {
e.preventDefault();
Expand Down

0 comments on commit 402da3c

Please sign in to comment.