fix(core): client bootstrap override

This commit is contained in:
rhunk
2024-03-01 23:40:14 +01:00
parent 630d93ede6
commit f65391d7fe

View File

@ -16,6 +16,10 @@ class ClientBootstrapOverride : Feature("ClientBootstrapOverride", loadParams =
override fun onActivityCreate() {
val bootstrapOverrideConfig = context.config.userInterface.bootstrapOverride
if (!clientBootstrapFolder.exists() && (bootstrapOverrideConfig.appAppearance.getNullable() != null || bootstrapOverrideConfig.homeTab.getNullable() != null)) {
clientBootstrapFolder.mkdirs()
}
bootstrapOverrideConfig.appAppearance.getNullable()?.also { appearance ->
val state = when (appearance) {
"always_light" -> 0