Fix issue where search filtering broke

We accidentally deleted a }
kari/search
kari-ts 1 year ago
parent 502eada21a
commit 4e4f27331c

@ -102,8 +102,7 @@ class MainViewModel(private val vpnViewModel: VpnViewModel) : IpnViewModel() {
when {
prepared && currentState == State.Running || currentState == State.Starting ->
true
previousState == State.NoState && currentState == State.Starting ->
true
previousState == State.NoState && currentState == State.Starting -> true
else -> false
}
@ -131,14 +130,14 @@ class MainViewModel(private val vpnViewModel: VpnViewModel) : IpnViewModel() {
}
}
}
}
viewModelScope.launch {
searchTerm.collect { term -> peers.set(peerCategorizer.groupedAndFilteredPeers(term)) }
}
viewModelScope.launch {
searchTerm.collect { term -> peers.set(peerCategorizer.groupedAndFilteredPeers(term)) }
}
viewModelScope.launch {
App.get().healthNotifier?.currentIcon?.collect { icon -> healthIcon.set(icon) }
}
viewModelScope.launch {
App.get().healthNotifier?.currentIcon?.collect { icon -> healthIcon.set(icon) }
}
}

Loading…
Cancel
Save