mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 15:50:16 +02:00
Fix settings changes needing a restart to apply
This commit is contained in:
parent
8a2481362d
commit
ef20dad993
1 changed files with 5 additions and 7 deletions
|
|
@ -113,12 +113,10 @@ class MainActivity : AppCompatActivity() {
|
|||
val current by serverRepository.current.observeAsState()
|
||||
|
||||
val preferences =
|
||||
remember(current) {
|
||||
UserPreferences(
|
||||
appPreferences,
|
||||
current?.userDto?.configuration ?: DefaultUserConfiguration,
|
||||
)
|
||||
}
|
||||
UserPreferences(
|
||||
appPreferences,
|
||||
current?.userDto?.configuration ?: DefaultUserConfiguration,
|
||||
)
|
||||
|
||||
if (isRestoringSession) {
|
||||
Box(
|
||||
|
|
@ -150,7 +148,7 @@ class MainActivity : AppCompatActivity() {
|
|||
}
|
||||
}
|
||||
val deviceProfile =
|
||||
remember(current, appPreferences) {
|
||||
remember(current, preferences) {
|
||||
createDeviceProfile(
|
||||
this@MainActivity,
|
||||
preferences,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue