commit f65391d7fe52d296a6a640ba19f5a380810d537a parent 630d93ede67781f3169184309ab11f87f51638d1 Author: rhunk <101876869+rhunk@users.noreply.github.com> Date: Fri, 1 Mar 2024 23:40:14 +0100 fix(core): client bootstrap override Diffstat:
M | core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/ui/ClientBootstrapOverride.kt | | | 4 | ++++ |
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/ui/ClientBootstrapOverride.kt b/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/ui/ClientBootstrapOverride.kt @@ -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