Skip to content

Commit

Permalink
Use enum name rather than capitalization
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed Dec 6, 2024
1 parent 5900529 commit 12bd5ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class ProxySettings implements SettingsObject {
.uiName("Proxy check service")
.description("What service to use to check if a proxy is working")
.defaultValue(ProxyCheckService.IPIFY.name())
.addOptions(ComboProperty.optionsFromEnum(ProxyCheckService.values(), ComboProperty::capitalizeEnum))
.addOptions(ComboProperty.optionsFromEnum(ProxyCheckService.values(), Enum::name))
.build();

public enum ProxyCheckService {
Expand Down

0 comments on commit 12bd5ce

Please sign in to comment.