Skip to content

Commit

Permalink
fix: min size not respected when coming out of compact mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sekwah41 committed Dec 20, 2022
1 parent dd69232 commit 1d3171f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/main/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,10 +338,10 @@ ipcMain.on(SET_COMPACT_MODE, (e, args) => {
win?.setResizable(false);
windowState.isOnCompactMode = true;
} else {
win?.setMinimumSize(340, getFrameHeight());
win?.setSize(340, getFrameHeight());
win?.setResizable(true);
windowState.isOnCompactMode = true;
win?.setMinimumSize(340, getFrameHeight());
win?.setSize(340, getFrameHeight());
}
});

Expand Down

0 comments on commit 1d3171f

Please sign in to comment.