mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-03 19:04:39 -05:00
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 {
|
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