Correctly select enum webui flavor via "ui name" (#772)
The selection always returned the default value fallback due to incorrectly using the enums value name instead of the "uiName" of the enum value
This commit is contained in:
@@ -117,7 +117,7 @@ enum class WebUIFlavor(
|
||||
;
|
||||
|
||||
companion object {
|
||||
fun from(value: String): WebUIFlavor = entries.find { it.name == value } ?: WEBUI
|
||||
fun from(value: String): WebUIFlavor = entries.find { it.uiName == value } ?: WEBUI
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user