mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-25 06:01:40 +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;
|
||||
}
|
||||
|
||||
const filePath = dialog.showSaveDialogSync(browserWindow, {});
|
||||
const filePath = dialog.showSaveDialogSync(browserWindow, {
|
||||
filters: [
|
||||
{
|
||||
name: "PDF",
|
||||
extensions: [ "pdf" ]
|
||||
}
|
||||
]
|
||||
});
|
||||
if (!filePath) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user