Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
Make settings window larger when not using custom titlebar (for sizing issues)
  • Loading branch information
amanharwara committed Mar 21, 2019
1 parent 5f576ba commit e7f5482
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ if (!singleInstanceLock) {
description: 'If this setting is enabled, the app will prompt you everytime you close the app. Disabling this will disable the prompt.'
},
customTitlebar: {
value: true,
name: 'Custom Titlebar',
description: 'If you are having any issues with the custom titlebar, you can disable it using this setting. NOTE: This setting requires you to restart the whole app for changes to apply.'
value: true,
name: 'Custom Titlebar',
description: 'If you are having any issues with the custom titlebar, you can disable it using this setting. NOTE: This setting requires you to restart the whole app for changes to apply.'
}
}
});
Expand Down Expand Up @@ -328,8 +328,8 @@ function createWindow(id) {
frame: !settings.get('customTitlebar.value'),
backgroundColor: '#282C34',
titleBarStyle: 'hidden',
width: 400,
height: 349,
width: settings.get('customTitlebar.value') ? 400 : 450,
height: settings.get('customTitlebar.value') ? 349 : 400,
resizable: false,
maximizable: false,
minimizable: false,
Expand Down Expand Up @@ -459,4 +459,4 @@ function confirmExit() {
return;
}
});
}
}

0 comments on commit e7f5482

Please sign in to comment.