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:
schroda
2023-11-20 01:22:26 +01:00
committed by GitHub
parent 2298e71279
commit 9110c07ed9
@@ -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
}
}