Skip to content

Commit

Permalink
updated default window sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobmichels committed Apr 27, 2020
1 parent 24d823d commit 2a5ecc3
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions electron/src/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ new customTitlebar.Titlebar({
});

$(document).ready(function () {
$('#stop-btn').addClass('disabled');
readConfig();
})

Expand Down Expand Up @@ -161,12 +160,10 @@ $('#config-btn').click(function () { //show configuration options
// $('#message').html('<div class="input-field"><input id="pushed-id-field" class="white-text" type="text"><label for="pushed-id-field">Pushed ID</label><a onclick="confirm()" class="waves-effect red waves-light btn">save</a></div>');
let main = BrowserWindow.getFocusedWindow();
main.setEnabled(false);
main.on('focus',()=>{
readConfig();
})

let win = new BrowserWindow({
width: 800,
height: 600,
width: 650,
height: 460,
webPreferences: {
nodeIntegration: true,
},
Expand All @@ -177,6 +174,7 @@ $('#config-btn').click(function () { //show configuration options
win = null;
main.setEnabled(true);
main.focus();
readConfig();
})
win.loadURL(`file://${__dirname}/config.html`);

Expand All @@ -198,7 +196,7 @@ $('#help-btn').click(()=>{

let win = new BrowserWindow({
width: 700,
height: 825,
height: 800,
webPreferences: {
nodeIntegration: true,
},
Expand Down

0 comments on commit 2a5ecc3

Please sign in to comment.