mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 22:46:49 +01:00
Merge pull request #1071 from greenart7c3/main
Fix edit draft not working when using the quick action menu
This commit is contained in:
@@ -206,6 +206,7 @@ fun NoteQuickActionMenu(
|
|||||||
if (editDraftDialog.value) {
|
if (editDraftDialog.value) {
|
||||||
NewPostView(
|
NewPostView(
|
||||||
onClose = {
|
onClose = {
|
||||||
|
onDismiss()
|
||||||
editDraftDialog.value = false
|
editDraftDialog.value = false
|
||||||
},
|
},
|
||||||
accountViewModel = accountViewModel,
|
accountViewModel = accountViewModel,
|
||||||
@@ -427,7 +428,6 @@ private fun RenderMainPopup(
|
|||||||
Icons.Default.Edit,
|
Icons.Default.Edit,
|
||||||
stringRes(R.string.edit_draft),
|
stringRes(R.string.edit_draft),
|
||||||
) {
|
) {
|
||||||
onDismiss()
|
|
||||||
onWantsToEditDraft()
|
onWantsToEditDraft()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user