Skip to content

Commit

Permalink
Allow for biger Preferences Window
Browse files Browse the repository at this point in the history
90% of screen size
  • Loading branch information
hovancik committed Jan 9, 2021
1 parent ade5610 commit 17f32b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -752,9 +752,9 @@ function createPreferencesWindow () {
return
}
const modalPath = path.join('file://', __dirname, '/preferences.html')
const maxHeight = (electron.screen
const maxHeight = electron.screen
.getDisplayNearestPoint(electron.screen.getCursorScreenPoint())
.workAreaSize.height - 530) / 2.0 + 490
.workAreaSize.height * 0.9
preferencesWin = new BrowserWindow({
autoHideMenuBar: true,
icon: windowIconPath(),
Expand Down

0 comments on commit 17f32b2

Please sign in to comment.