fix(client): printing triggers twice

This commit is contained in:
Elian Doran 2025-09-15 19:40:32 +03:00
parent b394fb1e86
commit 377de59df9
No known key found for this signature in database

View File

@ -151,7 +151,7 @@ export default class PopupEditorDialog extends Container<BasicWidget> {
handleEventInChildren<T extends EventNames>(name: T, data: EventData<T>): Promise<unknown[] | unknown> | null { handleEventInChildren<T extends EventNames>(name: T, data: EventData<T>): Promise<unknown[] | unknown> | null {
// Avoid events related to the current tab interfere with our popup. // Avoid events related to the current tab interfere with our popup.
if (["noteSwitched", "noteSwitchedAndActivated"].includes(name)) { if (["noteSwitched", "noteSwitchedAndActivated", "exportAsPdf", "printActiveNote"].includes(name)) {
return Promise.resolve(); return Promise.resolve();
} }