Skip to content

Commit

Permalink
#132 - Open only an existing folder
Browse files Browse the repository at this point in the history
  • Loading branch information
estruyf committed Oct 5, 2021
1 parent 1d8c192 commit 6151ecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/Dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export class Dashboard {
// If the static folder is not set, retreive the last opened location
if (!selectedFolder) {
const stateValue = await Extension.getInstance().getState<string | undefined>(ExtensionState.SelectedFolder);
if (stateValue) {
if (stateValue && existsSync(stateValue)) {
selectedFolder = stateValue;
}
}
Expand Down

0 comments on commit 6151ecb

Please sign in to comment.