TagSpaces is an offline, open source, document manager with tagging support
chore: restoring folder opening functionality
Ilian Sapundshiev2e33b3075ea0
diff --git a/app/perspectives/grid-perspective/components/MainContainer.tsx b/app/perspectives/grid-perspective/components/MainContainer.tsxindex 0f1786902..a9e67e05d 100644--- a/app/perspectives/grid-perspective/components/MainContainer.tsx+++ b/app/perspectives/grid-perspective/components/MainContainer.tsx@@ -350,13 +350,13 @@ class GridPerspective extends React.Component<Props, State> {} else {setSelectedEntries([fsEntry]);setLastSelectedEntry(fsEntry.path);- if (this.state.singleClickAction === 'openInternal') {- this.props.openFsEntry(fsEntry);- } else if (- fsEntry.isFile &&- this.state.singleClickAction === 'openExternal'- ) {- this.props.openFileNatively(fsEntry.path);+ if (fsEntry.isFile) {+ if (this.state.singleClickAction === 'openInternal') {+ this.props.openFsEntry(fsEntry);+ } else if (this.state.singleClickAction === 'openExternal') {+ this.props.openFileNatively(fsEntry.path);+ }+ // else if (this.state.singleClickAction === 'selects') {}}}};