mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-06-06 05:39:14 +02:00
fixing the need for a new coroutine startup
This commit is contained in:
parent
bc8e5aa458
commit
286583bba2
@ -189,10 +189,8 @@ fun NoteDropDownMenu(
|
|||||||
text = { Text(stringRes(R.string.copy_text)) },
|
text = { Text(stringRes(R.string.copy_text)) },
|
||||||
onClick = {
|
onClick = {
|
||||||
val lastNoteVersion = (editState?.value as? GenericLoadable.Loaded)?.loaded?.modificationToShow?.value ?: note
|
val lastNoteVersion = (editState?.value as? GenericLoadable.Loaded)?.loaded?.modificationToShow?.value ?: note
|
||||||
scope.launch(Dispatchers.IO) {
|
accountViewModel.decrypt(lastNoteVersion) { clipboardManager.setText(AnnotatedString(it)) }
|
||||||
accountViewModel.decrypt(lastNoteVersion) { clipboardManager.setText(AnnotatedString(it)) }
|
onDismiss()
|
||||||
onDismiss()
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
DropdownMenuItem(
|
DropdownMenuItem(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user