TagSpaces is an offline, open source, document manager with tagging support
disable loading of the tree for default location on new props
Ilian Sapundshieve9fd0102a270
diff --git a/app/components/LocationManager.js b/app/components/LocationManager.jsindex 19741441c..9a0c94120 100644--- a/app/components/LocationManager.js+++ b/app/components/LocationManager.js@@ -144,16 +144,6 @@ class LocationManager extends React.Component<Props, State> {dirs: {}};- componentWillReceiveProps = (nextProps: any) => {- if (this.props.locations !== nextProps.locations) {- nextProps.locations.forEach((location) => {- if (location.isDefault) {- this.loadSubDirectories(location, 1);- }- });- }- };-loadSubDirectories = (location: Location, deepLevel: number) => {const subFolder = {uuid: location.uuid,@@ -593,7 +583,13 @@ class LocationManager extends React.Component<Props, State> {onClick={() => this.handleLocationClick(location)}onContextMenu={event => this.handleLocationContextMenuClick(event, location)}>- <ListItemIcon style={{ marginRight: 0 }}>+ <ListItemIcon+ // onClick={(e) => {+ // e.preventDefault();+ // this.loadSubDirectories(location, 1);+ // }}+ style={{ marginRight: 0 }}+ >{ location.type === locationType.TYPE_CLOUD ?(<CloudLocationIcon className={this.props.classes.icon} />) :(<LocationIcon className={this.props.classes.icon} />)