This commit is contained in:
Araxeus
2021-04-05 04:08:55 +03:00
parent 6472002f8a
commit 106e461beb
2 changed files with 1 additions and 5 deletions

View File

@ -51,10 +51,6 @@ module.exports = (winImport) => {
//set menu visibility on load //set menu visibility on load
win.webContents.on("did-finish-load", () => { win.webContents.on("did-finish-load", () => {
if (calledFinishedLoad) {
return;
}
calledFinishedLoad = true;
// fix bug with menu not applying on start when no internet connection available // fix bug with menu not applying on start when no internet connection available
setMenuVisibility(!config.get("options.hideMenu")); setMenuVisibility(!config.get("options.hideMenu"));
}) })

View File

@ -2,7 +2,7 @@ const { ipcRenderer } = require("electron");
module.exports = () => { module.exports = () => {
ipcRenderer.on("log", (event, log) => { ipcRenderer.on("log", (event, log) => {
let string = log.toString() || log; let string = log || log.toString();
if (!string || string === "[object Object]") { if (!string || string === "[object Object]") {
string = JSON.stringify(log); string = JSON.stringify(log);
} }