Fix text search not running if there was not a filter set, fix typo on pax counter settings localized string

This commit is contained in:
Garth Vander Houwen 2024-03-26 14:01:59 -07:00
parent 5cd2b3342b
commit 35c943aa68
2 changed files with 2 additions and 2 deletions

View file

@ -316,7 +316,7 @@ struct NodeList: View {
}
}
if predicates.count > 0 {
if predicates.count > 0 || !searchText.isEmpty {
if !searchText.isEmpty {
let filterPredicates = NSCompoundPredicate(type: .and, subpredicates: predicates)

View file

@ -333,7 +333,7 @@ struct Settings: View {
PaxCounterConfig(node: nodes.first(where: { $0.num == selectedNode }))
} label: {
Label {
Text("config.module.paxcounter.setting")
Text("config.module.paxcounter.settings")
} icon: {
Image(systemName: "figure.walk.motion")
}