Skip to content

Commit f4711a7

Browse files
authored
Merge pull request #408 from The-Sizzler/patch-1
Update main.js to fix the issue with the application not opening to it min height and width
2 parents 0f4da7e + 476f2e3 commit f4711a7

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

main.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ let server;
88
let mainWindow;
99
let trayIcon;
1010

11+
const WindowProperties = {
12+
width: 1260,
13+
height: 850,
14+
}
15+
1116
const gotTheLock = app.requestSingleInstanceLock();
1217

1318
function processError(err) {
@@ -22,10 +27,10 @@ process.on('uncaughtException', processError);
2227

2328
function createWindow() {
2429
mainWindow = new BrowserWindow({
25-
width: 800,
26-
height: 600,
27-
minHeight: 850,
28-
minWidth: 1260,
30+
width: WindowProperties.width,
31+
height: WindowProperties.height,
32+
minWidth: WindowProperties.width,
33+
minHeight: WindowProperties.height,
2934
webPreferences: {},
3035
show: false,
3136
});
@@ -172,8 +177,8 @@ function checkForUpdates() {
172177
</html>
173178
`;
174179
releaseNotesWindow = new BrowserWindow({
175-
width: 800,
176-
height: 600,
180+
width: 850,
181+
height: 1260,
177182
minHeight: 850,
178183
minWidth: 1260,
179184
webPreferences: {

0 commit comments

Comments
 (0)