feat(print): add filter for PDF

This commit is contained in:
Elian Doran
2025-01-31 21:51:15 +02:00
parent 0f7826d6d0
commit 414a4d7b17

View File

@@ -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;
}