From 72cb41dcc13458195f0b29158b45a8fdf8c125c6 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Thu, 1 Mar 2018 21:13:11 +0100 Subject: [PATCH] launcher: fix bg color & disable menu bar before loading url --- app/main/electron-window.js | 4 ++-- app/main/main.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/main/electron-window.js b/app/main/electron-window.js index ac5f7c4b..4728e0cd 100644 --- a/app/main/electron-window.js +++ b/app/main/electron-window.js @@ -54,10 +54,10 @@ module.exports = function(options={}) { window = null }) - window.loadURL(options.address) - window.setMenu(null) + window.loadURL(options.address) + if (options.shortcuts) { shortcut.register(window,'CmdOrCtrl+R',function(){ diff --git a/app/main/main.js b/app/main/main.js index 824ae3ab..493503ab 100644 --- a/app/main/main.js +++ b/app/main/main.js @@ -66,7 +66,7 @@ if (settings.cli) { launcher app.on('ready',function(){ - launcher = require('./electron-window')({address:address, shortcuts:false, width:680, height:(100 + 8*3 + 29 * Object.keys(settings.options).filter(x => settings.options[x].launcher !== false).length), node:true, color:'#283143'}) + launcher = require('./electron-window')({address:address, shortcuts:false, width:680, height:(100 + 8*3 + 29 * Object.keys(settings.options).filter(x => settings.options[x].launcher !== false).length), node:true, color:'#253040'}) }) if (process.log) {