mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
This commit is contained in:
parent
9333f52edd
commit
225dfbf505
4 changed files with 26 additions and 2 deletions
|
|
@ -1024,3 +1024,11 @@ powerMonitor.on("shutdown", () => {
|
|||
net.fetch(getServer(currentURL.port) + "/api/system/exit", {method: "POST"});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
powerMonitor.on("lock-screen", () => {
|
||||
writeLog("system lock-screen");
|
||||
BrowserWindow.getAllWindows().forEach(item => {
|
||||
item.webContents.send("siyuan-send_windows", {cmd: "lockscreenByMode"});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue