File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/kotlin/com/lambda/gui Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import com.lambda.Lambda.REPO_URL
2222import com.lambda.Lambda.mc
2323import com.lambda.command.CommandRegistry
2424import com.lambda.config.Configuration
25+ import com.lambda.config.Configuration.Companion.configurables
2526import com.lambda.config.UserAutomationConfig
2627import com.lambda.config.configurations.UserAutomationConfigs
2728import com.lambda.core.Loader
@@ -287,7 +288,7 @@ object MenuBar {
287288 popupContextWindow(" ##new-config" ) {
288289 inputText(" Name" , newConfigName)
289290 button(" Create" ) {
290- if (newConfigName.isEmpty) return @button
291+ if (newConfigName.isEmpty && configurables.none { it.name == newConfigName.get() } ) return @button
291292 UserAutomationConfig (newConfigName.get())
292293 newConfigName.clear()
293294 closeCurrentPopup()
You can’t perform that action at this time.
0 commit comments