Skip to content

Commit

Permalink
feat: check for custom path if set
Browse files Browse the repository at this point in the history
  • Loading branch information
jgenc authored and mokeyish committed Feb 7, 2024
1 parent 881b238 commit a2aa0eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ui/ExportDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ const Dialog = (props: { plugin: UniversalExportPlugin, currentFile: TFile, onCl
if (globalSetting.defaultExportDirectoryMode === 'Same') {
const path = currentFile.vault.adapter.getBasePath() + '/' + currentFile.parent.path;
setCandidateOutputDirectory(path);
} else if (globalSetting.defaultExportDirectoryMode === 'Custom') {
setCandidateOutputDirectory(getPlatformValue(globalSetting.customDefaultExportDirectory));
}

const chooseFolder = async () => {
Expand Down

0 comments on commit a2aa0eb

Please sign in to comment.