mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
This commit is contained in:
parent
fd98963038
commit
575a151b89
5 changed files with 80 additions and 19 deletions
|
|
@ -861,6 +861,15 @@ app.whenReady().then(() => {
|
|||
globalShortcut.unregister(hotKey2Electron(data.accelerator));
|
||||
}
|
||||
break;
|
||||
case "setTrafficLightPosition":
|
||||
if (!currentWindow) {
|
||||
return;
|
||||
}
|
||||
if (new URL(currentWindow.getURL()).pathname === "/stage/build/app/window.html") {
|
||||
data.position.y += 5 * data.zoom;
|
||||
}
|
||||
currentWindow.setWindowButtonPosition(data.position);
|
||||
break;
|
||||
case "show":
|
||||
if (!currentWindow) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue