From 4f9ded292d72801f5310bdd395092667008fb166 Mon Sep 17 00:00:00 2001 From: Marisa DeMeglio Date: Wed, 11 Oct 2023 08:47:04 -0700 Subject: [PATCH] fix: import configuration file dialog filters Related to a temporary feature scheduled for removal #161 --- package.json | 2 +- src/main/index.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index dae876e..306912b 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "displayName": "DAISY Pipeline (2023)", "name": "pipeline-ui", "description": "User interface for the DAISY Pipeline", - "version": "1.2.0-BETA", + "version": "1.2.1-BETA", "main": "./node_modules/.dev-temp-build/main.js", "devTempBuildFolder": "./node_modules/.dev-temp-build", "devServer": "http://localhost:4927", diff --git a/src/main/index.ts b/src/main/index.ts index 9d1a62d..d840a69 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -169,7 +169,10 @@ function buildMenu() { title: `Select configuration file`, //defaultPath: value?.replace('file://', '') ?? '', buttonLabel: 'Select', // this is a different buttonLabel, it's the one for the actual file browse dialog - filters: [{ name: 'Settings', extensions: ['*.json'] }], + filters: [ + { name: 'JSON', extensions: ['json'] }, + { name: 'All files', extensions: ['*'] }, + ], // @ts-ignore properties: ['openFile'], }