diff options
author | Walker Selby <git@walkerselby.com> | 2023-11-09 21:44:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-09 22:44:29 +0100 |
commit | 1408f90d61526e6afc96451eea42ef6260e6cfb6 (patch) | |
tree | 35485ef1dbb6bc4420442e1f519fec780688db24 | |
parent | 4b1ca0420affea855bb7c41775825b6bb933b570 (diff) | |
download | skyhanni-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
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/massconfiguration/DefaultConfigFeatures.kt | 5 |
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) } |