From 7dd517d8f7b66a268423c72639d33a737eab3a85 Mon Sep 17 00:00:00 2001 From: SiriusXT <1160925501@qq.com> Date: Mon, 27 Oct 2025 14:42:22 +0800 Subject: [PATCH] fix (empty tab): recent notes not showing when creating a empty tab --- apps/client/src/widgets/dialogs/popup_editor.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/client/src/widgets/dialogs/popup_editor.ts b/apps/client/src/widgets/dialogs/popup_editor.ts index 1deb584d9..fed105515 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 { } handleEventInChildren(name: T, data: EventData): Promise | 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();