Show label for no entries found
This commit is contained in:
parent
9508412427
commit
efde0dcdb4
@ -28,6 +28,9 @@ class ListController(private val model: Model) {
|
|||||||
.bind(Bindings.or(model.isSearching, Bindings.isEmpty(model.searchResults)))
|
.bind(Bindings.or(model.isSearching, Bindings.isEmpty(model.searchResults)))
|
||||||
|
|
||||||
progressIndicatorEntries.visibleProperty().bind(model.isSearching)
|
progressIndicatorEntries.visibleProperty().bind(model.isSearching)
|
||||||
|
labelNoEntriesFound
|
||||||
|
.visibleProperty()
|
||||||
|
.bind(Bindings.and(Bindings.isEmpty(model.searchResults), Bindings.not(model.isSearching)))
|
||||||
|
|
||||||
listViewSearchResults.selectionModel.selectedItemProperty().addListener { _, _, newValue: DictionaryEntryFx? ->
|
listViewSearchResults.selectionModel.selectedItemProperty().addListener { _, _, newValue: DictionaryEntryFx? ->
|
||||||
if (newValue == null) {
|
if (newValue == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user