Set minimum window size

Close #389
This commit is contained in:
Yuya Ochiai
2017-01-17 23:36:43 +09:00
parent e72e4155ba
commit 7c8a676f8a
2 changed files with 7 additions and 1 deletions

View File

@@ -21,6 +21,7 @@ Release date: TBD
- Do not place the application window outside of the viewable area anymore, if the display it has been on has been removed
- Remove remaining badges after logging out of the team
- Fixed an issue where context menu appears many times after reloading
- Fixed an issue where minimum window size is not set
#### Windows
- Fixed an issue where an unexpected window appears while install/uninstalling

View File

@@ -447,7 +447,12 @@ app.on('ready', () => {
if (process.platform === 'linux') {
windowOptions.icon = path.resolve(assetsDir, 'appicon.png');
}
Object.assign(windowOptions, {title: app.getName(), show: false});
Object.assign(windowOptions, {
title: app.getName(),
show: false,
minWidth: 400,
minHeight: 240
});
mainWindow = new BrowserWindow(windowOptions);
mainWindow.once('ready-to-show', () => {
mainWindow.show();