TagSpaces is an offline, open source, document manager with tagging support
Location Manager doesn't show hidden directories (#948)
James B. Nall3bd341e49875
diff --git a/app/components/LocationManager.js b/app/components/LocationManager.jsindex dc5fd81cf..ab254c2a3 100644--- a/app/components/LocationManager.js+++ b/app/components/LocationManager.js@@ -60,7 +60,7 @@ import {} from '../reducers/locations';import { actions as AppActions, getCurrentLocationId, isReadOnlyMode } from '../reducers/app';import { actions as LocationIndexActions } from '../reducers/location-index';-import { getPerspectives } from '../reducers/settings';+import { getPerspectives, getShowUnixHiddenEntries } from '../reducers/settings';import i18n from '../services/i18n';import { isObj } from '../utils/misc';import AppConfig from '../config';@@ -205,7 +205,9 @@ class LocationManager extends React.Component<Props, State> {.then(dirEntries => {const directoryContent = [];dirEntries.map(entry => {- if (entry.name === AppConfig.metaFolder || entry.name.endsWith('/' + AppConfig.metaFolder)) { // TODO !settings.showUnixHiddenEntries &&+ if (entry.name === AppConfig.metaFolder+ || entry.name.endsWith('/' + AppConfig.metaFolder)+ || (!this.props.showUnixHiddenEntries && entry.name.startsWith('.'))) {return true;}// const enhancedEntry = enhanceEntry(entry);@@ -805,7 +807,8 @@ function mapStateToProps(state) {locations: getLocations(state),currentLocationId: getCurrentLocationId(state),perspectives: getPerspectives(state),- isReadOnlyMode: isReadOnlyMode(state)+ isReadOnlyMode: isReadOnlyMode(state),+ showUnixHiddenEntries: getShowUnixHiddenEntries(state)};}