mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-25 14:31:33 +08:00
feat(print): add filter for PDF
This commit is contained in:
parent
0f7826d6d0
commit
414a4d7b17
@ -53,7 +53,14 @@ ipcMain.on("export-as-pdf", async (e) => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const filePath = dialog.showSaveDialogSync(browserWindow, {});
|
const filePath = dialog.showSaveDialogSync(browserWindow, {
|
||||||
|
filters: [
|
||||||
|
{
|
||||||
|
name: "PDF",
|
||||||
|
extensions: [ "pdf" ]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
});
|
||||||
if (!filePath) {
|
if (!filePath) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user