Sign and Notarize config, debug logs for IPC
This commit is contained in:
parent
2f6d79e1f0
commit
396e6ed546
17 changed files with 535 additions and 103 deletions
|
|
@ -21,7 +21,7 @@ function updateWindowPosition()
|
|||
}
|
||||
|
||||
|
||||
function onNavBar(_e, cmd)
|
||||
function onNav(_e, cmd)
|
||||
{
|
||||
cmd === "close" ? win.close() : win.minimize();
|
||||
}
|
||||
|
|
@ -30,6 +30,8 @@ function createWin()
|
|||
{
|
||||
if (win) return;
|
||||
|
||||
console.log(__dirname);
|
||||
|
||||
let pos = store.get("window-position");
|
||||
if (!pos) pos = { width: 350, height: 750, x: null, y: null }
|
||||
|
||||
|
|
@ -71,10 +73,10 @@ function createWin()
|
|||
}
|
||||
});
|
||||
|
||||
win.webContents.send("set-account", store.get("account"));
|
||||
win.webContents.send("account", store.get("account"));
|
||||
});
|
||||
}
|
||||
|
||||
ipcMain.on("nav-bar", onNavBar);
|
||||
ipcMain.on("nav", onNav);
|
||||
|
||||
exports.createWin = createWin;
|
||||
|
|
|
|||
Loading…
Reference in a new issue