TagSpaces is an offline, open source, document manager with tagging support
feat: single click on a folder opens the its properties
Ilian Sapundshiev5b91cd8e4a94
diff --git a/app/perspectives/grid-perspective/components/MainContainer.tsx b/app/perspectives/grid-perspective/components/MainContainer.tsxindex a9e67e05d..0f1786902 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 (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') {}+ if (this.state.singleClickAction === 'openInternal') {+ this.props.openFsEntry(fsEntry);+ } else if (+ fsEntry.isFile &&+ this.state.singleClickAction === 'openExternal'+ ) {+ this.props.openFileNatively(fsEntry.path);}}};