Skip to content

Commit 1dd58ed

Browse files
Merge pull request #10452 from gitbutlerapp/improve-exiting-reword
Fix getting stuck in commit message amendment
2 parents 7405057 + d0fbed6 commit 1dd58ed

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

apps/desktop/src/components/CommitView.svelte

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,14 @@
148148
{resizer}
149149
{grow}
150150
{ontoggle}
151-
{onclose}
151+
onclose={() => {
152+
// When the commit view is closed, we also want to unset the
153+
// relevant uiState so things like commit buttons are usable.
154+
155+
// TODO: We should consider having a modal to confirm the cancel
156+
cancelEdit();
157+
onclose?.();
158+
}}
152159
bottomBorder
153160
noshrink
154161
>

0 commit comments

Comments
 (0)