mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
This commit is contained in:
parent
8985c9b3a9
commit
0ee6f5299e
6 changed files with 14 additions and 27 deletions
|
|
@ -664,12 +664,15 @@ app.whenReady().then(() => {
|
|||
ipcMain.on("siyuan-first-quit", () => {
|
||||
app.exit();
|
||||
});
|
||||
ipcMain.on("siyuan-show", (event) => {
|
||||
showWindow(getWindowByContentId(event.sender.id));
|
||||
});
|
||||
ipcMain.on("siyuan-cmd", (event, cmd) => {
|
||||
console.log(cmd)
|
||||
switch (cmd) {
|
||||
case "openDevTools":
|
||||
event.sender.openDevTools({mode: "bottom"});
|
||||
break;
|
||||
case "show":
|
||||
showWindow(getWindowByContentId(event.sender.id));
|
||||
break;
|
||||
case "hide":
|
||||
getWindowByContentId(event.sender.id).hide();
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue