diff --git a/launcher-gtk/src/main/kotlin/io/gitlab/jfronny/inceptum/gtk/GtkEnvBackend.kt b/launcher-gtk/src/main/kotlin/io/gitlab/jfronny/inceptum/gtk/GtkEnvBackend.kt index f7dd950..b9a5cc3 100644 --- a/launcher-gtk/src/main/kotlin/io/gitlab/jfronny/inceptum/gtk/GtkEnvBackend.kt +++ b/launcher-gtk/src/main/kotlin/io/gitlab/jfronny/inceptum/gtk/GtkEnvBackend.kt @@ -74,10 +74,11 @@ object GtkEnvBackend : EnvBackend { ok: Runnable?, cancel: Runnable? ) { - val dialog = AlertDialog("") - dialog.message = title - dialog.detail = markup - dialog.modal = true + val dialog = AlertDialog.builder() + .message(title) + .detail(markup) + .modal(true) + .build() when { cancel == null -> { dialog.setButtons(arrayOf(I18n["ok"]))