This commit is contained in:
parent
22ffd923d3
commit
b9adce4e92
1 changed files with 4 additions and 1 deletions
|
@ -163,7 +163,10 @@ export const openFile = async (options: IOpenFileOptions) => {
|
|||
if (hasClosestByClassName(item.element, "layout__wnd--active")) {
|
||||
activeEditor = item;
|
||||
}
|
||||
editor = item;
|
||||
if (!editor || item.headElement.getAttribute("data-activetime") > editor.headElement.getAttribute("data-activetime")) {
|
||||
// https://github.com/siyuan-note/siyuan/issues/11981#issuecomment-2351939812
|
||||
editor = item;
|
||||
}
|
||||
}
|
||||
if (activeEditor) {
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue