TagSpaces is an offline, open source, document manager with tagging support
fix: issue with not reseting the force indexing swtich
Ilian Sapundshievee63f8914fab
diff --git a/src/renderer/hooks/SearchQueryContextProvider.tsx b/src/renderer/hooks/SearchQueryContextProvider.tsxindex 4efa733f3..1d719b913 100644--- a/src/renderer/hooks/SearchQueryContextProvider.tsx+++ b/src/renderer/hooks/SearchQueryContextProvider.tsx@@ -73,7 +73,10 @@ export const SearchQueryContextProvider = ({useEffect(() => {if (searchQuery && Object.keys(searchQuery).length > 0) {- tempSearchQuery.current = { ...searchQuery };+ // forceIndexing is a one-shot — clear it after the executed query+ // syncs back so the toggle reverts to "use current index" and the+ // next search doesn't silently re-index again.+ tempSearchQuery.current = { ...searchQuery, forceIndexing: false };} else {tempSearchQuery.current = {};}