diff --git a/electron/src/render.js b/electron/src/render.js index cb75a04..918943a 100644 --- a/electron/src/render.js +++ b/electron/src/render.js @@ -31,7 +31,6 @@ new customTitlebar.Titlebar({ }); $(document).ready(function () { - $('#stop-btn').addClass('disabled'); readConfig(); }) @@ -161,12 +160,10 @@ $('#config-btn').click(function () { //show configuration options // $('#message').html('
save
'); 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, }, @@ -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`); @@ -198,7 +196,7 @@ $('#help-btn').click(()=>{ let win = new BrowserWindow({ width: 700, - height: 825, + height: 800, webPreferences: { nodeIntegration: true, },