|
@@ -2167,9 +2167,13 @@ extension KMLeftSideViewController {
|
|
|
}
|
|
|
|
|
|
private func _hasContainString(_ searchString: String, rootOutline outline: CPDFOutline) -> Bool {
|
|
|
- let label_low = outline.label.lowercased()
|
|
|
- let searchString_low = searchString.lowercased()
|
|
|
- if label_low.contains(searchString_low) {
|
|
|
+ var label = outline.label ?? ""
|
|
|
+ var searchLabel = searchString
|
|
|
+ if self.outlineIgnoreCaseFlag {
|
|
|
+ label = label.lowercased()
|
|
|
+ searchLabel = searchLabel.lowercased()
|
|
|
+ }
|
|
|
+ if label.contains(searchLabel) {
|
|
|
// if ([outline.label rangeOfString:searchString options:self.outlineIgnoreCaseFlag?NSCaseInsensitiveSearch:0].location != NSNotFound){
|
|
|
return true
|
|
|
} else {
|
|
@@ -4715,10 +4719,6 @@ extension KMLeftSideViewController {
|
|
|
|
|
|
}
|
|
|
|
|
|
- @objc func toggleOutlineCaseInsensitiveSearch(_ sender: AnyObject?) {
|
|
|
- KMPrint("KMLeftSideViewController-toggleOutlineCaseInsensitiveSearch...")
|
|
|
- }
|
|
|
-
|
|
|
private func _tableView(_ tv: NSTableView, cutRowsWithIndexes rowIndexes: IndexSet) {
|
|
|
if tv.isEqual(to: self.thumbnailTableView) {
|
|
|
self._copysPages.removeAll()
|