aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-09-09 17:12:00 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-09-09 17:12:00 +0200
commitb9b0e9a5dea8db979d5df5dda8f5866dc6f739be (patch)
treef95f34cfbf8705d3ee2c39d8434b21ab3c57f5ec
parent18da4a7c13d215fb6cd7969654986d9072dd24fa (diff)
downloadskyhanni-b9b0e9a5dea8db979d5df5dda8f5866dc6f739be.tar.gz
skyhanni-b9b0e9a5dea8db979d5df5dda8f5866dc6f739be.tar.bz2
skyhanni-b9b0e9a5dea8db979d5df5dda8f5866dc6f739be.zip
fix showing "no search" when not searched for anything yet
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt4
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
}