fix lint
This commit is contained in:
parent
904525a084
commit
bafc51e4a6
@ -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();
|
||||
|
||||
|
@ -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", () => {
|
||||
|
Loading…
Reference in New Issue
Block a user