Skip to content

Commit

Permalink
workaround for Linux users of the app to use it on very low resolutio…
Browse files Browse the repository at this point in the history
…n screens
  • Loading branch information
shiftkey committed Dec 17, 2020
1 parent 218ae12 commit 8232273
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/src/main-process/app-window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ export class AppWindow {
windowOptions.frame = false
} else if (__LINUX__) {
windowOptions.icon = path.join(__dirname, 'static', 'icon-logo.png')

// relax restriction here for users trying to run app at a small
// resolution and any other side-effects of dropping this restriction are
// currently unsupported
delete windowOptions.minHeight
delete windowOptions.minWidth
}

this.window = new BrowserWindow(windowOptions)
Expand Down

0 comments on commit 8232273

Please sign in to comment.