fix issues with color screen navigation

This commit is contained in:
Helium314 2025-02-11 18:21:02 +01:00
parent 63bda02cc4
commit bd7e92bcf8

View file

@ -38,8 +38,6 @@ fun SettingsNavHost(
fun goBack() {
if (!navController.popBackStack()) onClickBack()
}
if (target.value != SettingsDestination.Settings)
navController.navigate(route = target.value)
NavHost(
navController = navController,
@ -102,6 +100,8 @@ fun SettingsNavHost(
ColorsScreen(isNight = true, onClickBack = ::goBack)
}
}
if (target.value != SettingsDestination.Settings)
navController.navigate(route = target.value)
}
object SettingsDestination {