From 97bab4375896f128476114eb9bbc573ca675708c Mon Sep 17 00:00:00 2001 From: cubewhy Date: Mon, 29 Jan 2024 21:20:25 +0800 Subject: [PATCH] text.isEmpty -> text.isBlank --- .../kotlin/org/cubewhy/celestial/gui/elements/SearchableList.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/org/cubewhy/celestial/gui/elements/SearchableList.kt b/src/main/kotlin/org/cubewhy/celestial/gui/elements/SearchableList.kt index dfbf1ce8..2d8c3c01 100644 --- a/src/main/kotlin/org/cubewhy/celestial/gui/elements/SearchableList.kt +++ b/src/main/kotlin/org/cubewhy/celestial/gui/elements/SearchableList.kt @@ -88,7 +88,7 @@ class SearchableList(private val model: DefaultListModel, baseList: JList< private fun search(text: String) { isInternalChange = true - if (text.isEmpty()) { + if (text.isBlank()) { model.removeAllElements() model.addAll(list) isInternalChange = false