Launch in Dispatchers.IO when changing translations prefs in account
This commit is contained in:
+4
-2
@@ -255,8 +255,10 @@ private fun TranslationMessage(
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onClick = {
|
onClick = {
|
||||||
accountViewModel.account.toggleDontTranslateFrom(source)
|
scope.launch(Dispatchers.IO) {
|
||||||
langSettingsPopupExpanded = false
|
accountViewModel.account.toggleDontTranslateFrom(source)
|
||||||
|
langSettingsPopupExpanded = false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
HorizontalDivider(thickness = DividerThickness)
|
HorizontalDivider(thickness = DividerThickness)
|
||||||
|
|||||||
Reference in New Issue
Block a user