Show label for no entries found

This commit is contained in:
Marvin Elsen 2024-09-26 10:09:55 +02:00
parent 9508412427
commit efde0dcdb4
Signed by: marvinelsen
GPG Key ID: 820672408CC318C2

View File

@ -28,6 +28,9 @@ class ListController(private val model: Model) {
.bind(Bindings.or(model.isSearching, Bindings.isEmpty(model.searchResults)))
progressIndicatorEntries.visibleProperty().bind(model.isSearching)
labelNoEntriesFound
.visibleProperty()
.bind(Bindings.and(Bindings.isEmpty(model.searchResults), Bindings.not(model.isSearching)))
listViewSearchResults.selectionModel.selectedItemProperty().addListener { _, _, newValue: DictionaryEntryFx? ->
if (newValue == null) {