mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
This commit is contained in:
parent
94fe712efd
commit
ba4c3d4416
1 changed files with 2 additions and 2 deletions
|
|
@ -4,9 +4,9 @@ import {getAllEditor} from "../../layout/getAll";
|
|||
export const hideElements = (panels: string[], protyle?: IProtyle, focusHide = false) => {
|
||||
if (!protyle) {
|
||||
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();
|
||||
i--;
|
||||
}
|
||||
}
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue