Skip to content

Commit

Permalink
feat: Added default filepath for imports
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkoelle committed Oct 26, 2021
1 parent 559bb8b commit b8031cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/importer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export default class Importer {
// Create new workspace file if no workspace is allocated yet
if (workspacePath.length === 0) {
const p: string | undefined = dialog.showSaveDialogSync(this.mainWindow, {
defaultPath: `${Path.parse(path).name}.cor`,
filters: [{ name: 'Correctinator', extensions: ['cor'] }],
});
if (!p) {
Expand Down

0 comments on commit b8031cb

Please sign in to comment.