diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-09-09 17:12:00 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-09-09 17:12:00 +0200 |
commit | b9b0e9a5dea8db979d5df5dda8f5866dc6f739be (patch) | |
tree | f95f34cfbf8705d3ee2c39d8434b21ab3c57f5ec /src/main/java/at/hannibal2/skyhanni/utils | |
parent | 18da4a7c13d215fb6cd7969654986d9072dd24fa (diff) | |
download | skyhanni-b9b0e9a5dea8db979d5df5dda8f5866dc6f739be.tar.gz skyhanni-b9b0e9a5dea8db979d5df5dda8f5866dc6f739be.tar.bz2 skyhanni-b9b0e9a5dea8db979d5df5dda8f5866dc6f739be.zip |
fix showing "no search" when not searched for anything yet
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt b/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt index e916d01e1..9a9cc2adc 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt @@ -1068,7 +1068,9 @@ interface Renderable { val map = content.filter { it.value?.contains(textBox, ignoreCase = true) ?: true } val set = map.keys.toMutableSet() if (map.filter { it.value != null }.isEmpty()) { - set.add(string("§cNo search results!")) + if (textBox.isNotEmpty()) { + set.add(string("§cNo search results!")) + } } return set } |