This commit is contained in:
Anton Bracke 2022-02-19 01:55:05 +01:00
parent 904525a084
commit bafc51e4a6
No known key found for this signature in database
GPG Key ID: B1222603899C6B25
2 changed files with 7 additions and 10 deletions

View File

@ -34,11 +34,10 @@ function init() {
}); });
// This method will be called when Electron has finished loading // This method will be called when Electron has finished loading
app.on("ready", async () => { app.whenReady().then(async () => {
await settings.init(); await settings.init();
const logLevel = settings.get("log_level"); setLogLevel(settings.get("log_level") || "info");
setLogLevel(logLevel || "info");
autoUpdater.init(); autoUpdater.init();

View File

@ -84,13 +84,11 @@ export function createWindow() {
}); });
mainWindow.once("ready-to-show", () => { mainWindow.once("ready-to-show", () => {
(async () => {
// appView?.webContents.openDevTools({ // appView?.webContents.openDevTools({
// mode: "detach", // mode: "detach",
// }); // });
mainWindow?.show(); mainWindow?.show();
// mainWindow?.webContents.openDevTools({ mode: "detach" }); // mainWindow?.webContents.openDevTools({ mode: "detach" });
})();
}); });
mainWindow.webContents.on("did-finish-load", () => { mainWindow.webContents.on("did-finish-load", () => {