Skip to content

Commit

Permalink
fix: resize bug when restoring from tray
Browse files Browse the repository at this point in the history
  • Loading branch information
MatiasTK committed Dec 28, 2023
1 parent fb5e17b commit c64af6d
Show file tree
Hide file tree
Showing 5 changed files with 225 additions and 1,051 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules
testing
.vscode
out/
.env
.env
forge.config.js
44 changes: 0 additions & 44 deletions forge.config.js

This file was deleted.

2 changes: 2 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ const createWindow = () => {

win.on('restore', () => {
// TEMP FIX TO https://github.com/electron/electron/issues/31233
win.setSize(appData.width, appData.height);
win.setContentSize(appData.width, appData.height);
win.setBounds({ width: appData.width, height: appData.height });
});

Expand Down
Loading

0 comments on commit c64af6d

Please sign in to comment.