mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-26 03:56:24 +02: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:
@@ -255,8 +255,10 @@ private fun TranslationMessage(
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onClick = {
|
onClick = {
|
||||||
|
scope.launch(Dispatchers.IO) {
|
||||||
accountViewModel.account.toggleDontTranslateFrom(source)
|
accountViewModel.account.toggleDontTranslateFrom(source)
|
||||||
langSettingsPopupExpanded = false
|
langSettingsPopupExpanded = false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
HorizontalDivider(thickness = DividerThickness)
|
HorizontalDivider(thickness = DividerThickness)
|
||||||
|
Reference in New Issue
Block a user