Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix (empty tab): recent notes not showing when creating a empty tab
SiriusXT7dd517d8f7b6
diff --git a/apps/client/src/widgets/dialogs/popup_editor.ts b/apps/client/src/widgets/dialogs/popup_editor.tsindex 1deb584d93..fed1055155 100644--- a/apps/client/src/widgets/dialogs/popup_editor.ts+++ b/apps/client/src/widgets/dialogs/popup_editor.ts@@ -150,6 +150,11 @@ export default class PopupEditorDialog extends Container<BasicWidget> {}handleEventInChildren<T extends EventNames>(name: T, data: EventData<T>): Promise<unknown[] | unknown> | null {+ // Avoid not showing recent notes when creating a new empty tab.+ if (name === 'activeContextChanged' && "noteContext" in data && data.noteContext.isEmpty()) {+ return Promise.resolve();+ }+// Avoid events related to the current tab interfere with our popup.if (["noteSwitched", "noteSwitchedAndActivated", "exportAsPdf", "printActiveNote"].includes(name)) {return Promise.resolve();