Skip to content

Build your personal knowledge base with Trilium Notes

feat(print): add filter for PDF

Elian Doran414a4d7b171a
diff --git a/src/services/window.ts b/src/services/window.ts
index 897a6e4da3..a2638b9b53 100644
--- a/src/services/window.ts
+++ b/src/services/window.ts
@@ -53,7 +53,14 @@ ipcMain.on("export-as-pdf", async (e) => {
return;
}
- const filePath = dialog.showSaveDialogSync(browserWindow, {});
+ const filePath = dialog.showSaveDialogSync(browserWindow, {
+ filters: [
+ {
+ name: "PDF",
+ extensions: [ "pdf" ]
+ }
+ ]
+ });
if (!filePath) {
return;
}