TagSpaces is an offline, open source, document manager with tagging support
Changing the ignore list triggers the indexing (#2307)
Stanimire44104debf23
diff --git a/src/renderer/components/dialogs/CreateEditLocationDialog.tsx b/src/renderer/components/dialogs/CreateEditLocationDialog.tsxindex d1cf1552d..675dcf2d0 100644--- a/src/renderer/components/dialogs/CreateEditLocationDialog.tsx+++ b/src/renderer/components/dialogs/CreateEditLocationDialog.tsx@@ -467,20 +467,27 @@ function CreateEditLocationDialog(props: Props) {loc = { ...loc, persistTagsInSidecarFile };}+ let editedLocation;if (!selectedLocation) {- const commonLocation = new CommonLocation(loc);- getMetaLocationId(commonLocation).then((uuid) => {+ const editedLocation = new CommonLocation(loc);+ getMetaLocationId(editedLocation).then((uuid) => {if (uuid) {- commonLocation.uuid = uuid;+ editedLocation.uuid = uuid;}- addLocation(commonLocation);+ addLocation(editedLocation);});} else {loc.newuuid = newuuid;- editLocation(new CommonLocation(loc));- } /*else {- console.log('No addLocation or editLocation props exist');- }*/+ editedLocation = new CommonLocation(loc);+ editLocation(editedLocation);+ }+ if (+ selectedLocation &&+ JSON.stringify(selectedLocation.ignorePatternPaths) !==+ JSON.stringify(loc.ignorePatternPaths)+ ) {+ createLocationIndex(editedLocation);+ }onClose();// this.props.resetState('createLocationDialogKey');}