summaryrefslogtreecommitdiff
path: root/electron/src/main/index.js
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2022-07-14 16:23:46 +0200
committerGitHub <noreply@github.com>2022-07-14 16:23:46 +0200
commit4f7cd2885f4d0e725b33c919ef655af0240948cb (patch)
treea250a2f6159e3f3690bab3a6d33be44581ed8d52 /electron/src/main/index.js
parente23997ed1c79e35c1bbaff61721ef0851737b990 (diff)
Some updates for small issues in v2.2.0 (#1721)
* * autorun - underpath tolerance * save pdf file format * fill no geoms error for linestring * to satin: do not fail on mixed element list
Diffstat (limited to 'electron/src/main/index.js')
-rw-r--r--electron/src/main/index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/electron/src/main/index.js b/electron/src/main/index.js
index 09fd2959..d6f259fe 100644
--- a/electron/src/main/index.js
+++ b/electron/src/main/index.js
@@ -80,7 +80,9 @@ app.on('activate', () => {
ipcMain.on('save-pdf', function (event, pageSize) {
mainWindow.webContents.printToPDF({"pageSize": pageSize}, function(error, data) {
- dialog.showSaveDialog(mainWindow, {"defaultPath": "inkstitch.pdf"}, function(filename, bookmark) {
+ dialog.showSaveDialog(mainWindow, {"defaultPath": "inkstitch.pdf",
+ "filters": [{ name: 'PDF', extensions: ['pdf'] }]
+ }, function(filename, bookmark) {
if (typeof filename !== 'undefined')
fs.writeFileSync(filename, data, 'utf-8');
})