Skip to content

Commit

Permalink
fix: import configuration file dialog filters
Browse files Browse the repository at this point in the history
Related to a temporary feature scheduled for removal #161
  • Loading branch information
marisademeglio committed Oct 11, 2023
1 parent 5885781 commit 4f9ded2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 4 additions & 1 deletion src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
}
Expand Down

0 comments on commit 4f9ded2

Please sign in to comment.