mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
🚨
This commit is contained in:
parent
a3c33565df
commit
30cb2390ae
3 changed files with 18 additions and 18 deletions
|
|
@ -180,7 +180,7 @@ export const initWindow = () => {
|
|||
|
||||
const winOnBlur = () => {
|
||||
document.body.classList.add("body--blur");
|
||||
}
|
||||
};
|
||||
|
||||
const winOnClose = (currentWindow: Electron.BrowserWindow, close = false) => {
|
||||
exportLayout(false, () => {
|
||||
|
|
@ -224,7 +224,7 @@ export const initWindow = () => {
|
|||
} else {
|
||||
document.getElementById("toolbar").style.paddingLeft = "0";
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
const winOnLeaveFullscreen = () => {
|
||||
if (isWindow()) {
|
||||
|
|
@ -232,7 +232,7 @@ export const initWindow = () => {
|
|||
} else {
|
||||
document.getElementById("toolbar").setAttribute("style", "");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
const currentWindow = getCurrentWindow();
|
||||
currentWindow.on("focus", winOnFocus);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue