Skip to content

Commit 07e98da

Browse files
committed
Errors dialog can now be closed with ESC button
1 parent 644f33f commit 07e98da

File tree

1 file changed

+3
-1
lines changed
  • src/main/kotlin/com/jetpackduba/gitnuro/ui/dialogs/errors

1 file changed

+3
-1
lines changed

src/main/kotlin/com/jetpackduba/gitnuro/ui/dialogs/errors/ErrorDialog.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ fun ErrorDialog(
3232
val clipboard = LocalClipboardManager.current
3333
var showStackTrace by remember { mutableStateOf(false) }
3434

35-
MaterialDialog {
35+
MaterialDialog (
36+
onCloseRequested = onAccept,
37+
) {
3638
Column(
3739
modifier = Modifier
3840
.width(580.dp)

0 commit comments

Comments
 (0)