Vanessa 2024-12-19 18:27:05 +08:00
parent fd98963038
commit 575a151b89
5 changed files with 80 additions and 19 deletions

View file

@ -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;