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
app.on("ready", async () => {
app.whenReady().then(async () => {
await settings.init();
const logLevel = settings.get("log_level");
setLogLevel(logLevel || "info");
setLogLevel(settings.get("log_level") || "info");
autoUpdater.init();

View File

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