This commit is contained in:
Vanessa 2023-11-16 17:32:52 +08:00
parent 84b29657f8
commit 5c034d93d0
4 changed files with 19 additions and 18 deletions

View file

@ -188,15 +188,6 @@ export const newCenterEmptyTab = (app: App) => {
event.preventDefault();
break;
} else if (target.id === "editorEmptyRecent") {
const openRecentDocsDialog = window.siyuan.dialogs.find(item => {
if (item.element.getAttribute("data-key") === window.siyuan.config.keymap.general.recentDocs.custom) {
return true;
}
});
if (openRecentDocsDialog) {
hideElements(["dialog"]);
return;
}
openRecentDocs();
event.stopPropagation();
event.preventDefault();