mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-26 17:52:29 +01:00
Merge pull request #1165 from davotoula/1164-launch-in-scope-to-persist-translation-prefs
Crash fix: Launch in Dispatchers.IO when changing translations prefs in account
This commit is contained in:
commit
740c279825
@ -255,8 +255,10 @@ private fun TranslationMessage(
|
||||
}
|
||||
},
|
||||
onClick = {
|
||||
accountViewModel.account.toggleDontTranslateFrom(source)
|
||||
langSettingsPopupExpanded = false
|
||||
scope.launch(Dispatchers.IO) {
|
||||
accountViewModel.account.toggleDontTranslateFrom(source)
|
||||
langSettingsPopupExpanded = false
|
||||
}
|
||||
},
|
||||
)
|
||||
HorizontalDivider(thickness = DividerThickness)
|
||||
|
Loading…
x
Reference in New Issue
Block a user