aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/misc
diff options
context:
space:
mode:
authorWalker Selby <git@walkerselby.com>2023-11-09 21:44:29 +0000
committerGitHub <noreply@github.com>2023-11-09 22:44:29 +0100
commit1408f90d61526e6afc96451eea42ef6260e6cfb6 (patch)
tree35485ef1dbb6bc4420442e1f519fec780688db24 /src/main/java/at/hannibal2/skyhanni/features/misc
parent4b1ca0420affea855bb7c41775825b6bb933b570 (diff)
downloadskyhanni-1408f90d61526e6afc96451eea42ef6260e6cfb6.tar.gz
skyhanni-1408f90d61526e6afc96451eea42ef6260e6cfb6.tar.bz2
skyhanni-1408f90d61526e6afc96451eea42ef6260e6cfb6.zip
Add message for no new options to configure (#700)
No longer opening empty /shdefaultoptions GUI. #700
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/DefaultConfigFeatures.kt5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/DefaultConfigFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/DefaultConfigFeatures.kt
index ef9bd1e75..930c67358 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/DefaultConfigFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/DefaultConfigFeatures.kt
@@ -65,7 +65,10 @@ object DefaultConfigFeatures {
}
}
.filter { (_, filteredOptions) -> filteredOptions.isNotEmpty() }
-
+ if (optionList.isEmpty()) {
+ LorenzUtils.chat("There are no new options to configure between $old and $new")
+ return
+ }
SkyHanniMod.screenToOpen = DefaultConfigOptionGui(optionList, old, new)
}