From b9b0e9a5dea8db979d5df5dda8f5866dc6f739be Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Mon, 9 Sep 2024 17:12:00 +0200 Subject: fix showing "no search" when not searched for anything yet --- src/main/java/at/hannibal2/skyhanni/utils/renderables/Renderable.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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 } -- cgit