Skip to content

Commit a6aa039

Browse files
committed
fix: safe Spotlight re-indexing without delete-all, add CHANGELOG
1 parent 36d3659 commit a6aa039

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2626
- iOS: persistent query history with timestamps
2727
- iOS: export to clipboard (JSON, CSV, SQL INSERT)
2828
- iOS: sort columns with native Picker menu
29+
- iOS: Spotlight search and Siri Shortcuts for connections
2930

3031
## [0.27.4] - 2026-04-05
3132

TableProMobile/TableProMobile/AppState.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,9 @@ final class AppState {
198198
attributeSet: attributes
199199
)
200200
}
201-
CSSearchableIndex.default().deleteAllSearchableItems { _ in
201+
if items.isEmpty {
202+
CSSearchableIndex.default().deleteAllSearchableItems()
203+
} else {
202204
CSSearchableIndex.default().indexSearchableItems(items)
203205
}
204206
}

0 commit comments

Comments
 (0)