respect width/height (no fullscreen) if set in electronOptions... (#3187)

... in `config.js`.

Solves #3174 

With getting width/heigt from
`electron.screen.getPrimaryDisplay().workAreaSize` introduced with
https://github.com/MichMich/MagicMirror/pull/3161 the solution was to
remove the `setFullscreen` line.

So per default the fullscreen resolution is used but when someone now
uses `electronOptions.width`/`electronOptions.height` in `config.js`
these parameters are used and so "no fullscreen" is possible.
This commit is contained in:
Karsten Hassel 2023-09-13 22:59:36 +02:00 committed by GitHub
parent 91fd931a58
commit fa7c7fc8cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
_This release is scheduled to be released on 2023-10-01._ _This release is scheduled to be released on 2023-10-01._
> ⚠️ This release needs nodejs version > `v18`, older release have reached end of life and will not work! > ⚠️ This release needs nodejs version >= `v18`, older release have reached end of life and will not work!
### Added ### Added
@ -45,6 +45,7 @@ _This release is scheduled to be released on 2023-10-01._
- Fix time issue with certain recurring events in calendar module - Fix time issue with certain recurring events in calendar module
- Fix ipWhiteList test (#3179) - Fix ipWhiteList test (#3179)
- Fix newsfeed: Convert HTML entities, codes and tag in description (#3191) - Fix newsfeed: Convert HTML entities, codes and tag in description (#3191)
- Respect width/height (no fullscreen) if set in electronOptions in `config.js` (#3174)
## [2.24.0] - 2023-07-01 ## [2.24.0] - 2023-07-01

View File

@ -130,7 +130,6 @@ function createWindow() {
}); });
mainWindow.once("ready-to-show", () => { mainWindow.once("ready-to-show", () => {
mainWindow.setFullScreen(true);
mainWindow.show(); mainWindow.show();
}); });
} }