TagSpaces is an offline, open source, document manager with tagging support
feat: improving usability of full text search and link extraction
Ilian Sapundshievfb03bf43be86
diff --git a/src/renderer/components/dialogs/CreateEditLocationDialog.tsx b/src/renderer/components/dialogs/CreateEditLocationDialog.tsxindex 60fd7021b..293b8ae57 100644--- a/src/renderer/components/dialogs/CreateEditLocationDialog.tsx+++ b/src/renderer/components/dialogs/CreateEditLocationDialog.tsx@@ -743,22 +743,10 @@ function CreateEditLocationDialog(props: Props) {name="fullTextIndex"checked={fullTextIndex}onChange={(event: ChangeEvent<HTMLInputElement>) => {- setFullTextIndex(event.target.checked);- if (event.target.checked) {- if (selectedLocation) {- openConfirmDialog(- t('core:confirm'),- t('core:fullTextIndexRegenerate'),- (result) => {- if (result) {- createLocationIndex(selectedLocation);- }- },- 'cancelReIndexDialogTID',- 'confirmReIndexDialogTID',- 'confirmDialogContentTID',- );- }+ const checked = event.target.checked;+ setFullTextIndex(checked);+ if (checked && !devMode) {+ setExtractLinks(true);}}}/>@@ -791,7 +779,7 @@ function CreateEditLocationDialog(props: Props) {</>}/>- {fullTextIndex && (+ {devMode && fullTextIndex && (<FormControlLabellabelPlacement="start"sx={{ justifyContent: 'space-between', marginLeft: 0 }}