mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-19 17:26:34 +00:00
Make window size configurable
Change-type: patch Changelog-entry: Make window size configurable
This commit is contained in:
parent
273f7e4535
commit
c5dc869c03
@ -60,11 +60,14 @@ const checkForUpdates = async (interval) => {
|
||||
*/
|
||||
const createMainWindow = () => {
|
||||
const mainWindow = new electron.BrowserWindow({
|
||||
width: 800,
|
||||
height: 480,
|
||||
useContentSize: true,
|
||||
// eslint-disable-next-line no-magic-numbers
|
||||
width: parseInt(config.width, 10) || 800,
|
||||
// eslint-disable-next-line no-magic-numbers
|
||||
height: parseInt(config.height, 10) || 480,
|
||||
frame: !config.fullscreen,
|
||||
useContentSize: false,
|
||||
show: false,
|
||||
resizable: Boolean(config.fullscreen),
|
||||
resizable: false,
|
||||
maximizable: false,
|
||||
fullscreen: Boolean(config.fullscreen),
|
||||
fullscreenable: Boolean(config.fullscreen),
|
||||
|
Loading…
x
Reference in New Issue
Block a user