mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-15 16:41:07 +08:00
This commit is contained in:
parent
94fe712efd
commit
ba4c3d4416
@ -4,9 +4,9 @@ import {getAllEditor} from "../../layout/getAll";
|
|||||||
export const hideElements = (panels: string[], protyle?: IProtyle, focusHide = false) => {
|
export const hideElements = (panels: string[], protyle?: IProtyle, focusHide = false) => {
|
||||||
if (!protyle) {
|
if (!protyle) {
|
||||||
if (panels.includes("dialog")) {
|
if (panels.includes("dialog")) {
|
||||||
for (let i = 0; i < window.siyuan.dialogs.length; i++) {
|
const dialogLength = window.siyuan.dialogs.length;
|
||||||
|
for (let i = 0; i < dialogLength; i++) {
|
||||||
window.siyuan.dialogs[i].destroy();
|
window.siyuan.dialogs[i].destroy();
|
||||||
i--;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user