add-user-dialog: Don't use "adw_alert_dialog_format_body"

There isn't a formatted string, so adw_alert_dialog_set_body must
be used instead.

Closes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/3087
This commit is contained in:
Automeris naranja 2024-06-09 19:49:33 -03:00 committed by Felipe Borges
parent cfcea08372
commit 5227be3d78

View file

@ -87,7 +87,7 @@ show_error_dialog (CcAddUserDialog *self,
if (error != NULL) {
g_dbus_error_strip_remote_error (error);
adw_alert_dialog_format_body (ADW_ALERT_DIALOG (dialog), error->message);
adw_alert_dialog_set_body (ADW_ALERT_DIALOG (dialog), error->message);
}
adw_alert_dialog_add_responses (ADW_ALERT_DIALOG (dialog),