Skip to content

Commit f09d2d2

Browse files
committed
MainWindow: Update Domain dialog to new GNOME style
1 parent 51647a7 commit f09d2d2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/MainWindow.vala

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,9 @@ public class Plausible.MainWindow : Adw.ApplicationWindow {
211211
domain_grid.attach (domain_label, 0, 0);
212212
domain_grid.attach (domain_entry, 1, 0);
213213

214-
var domain_dialog = new Adw.MessageDialog (
215-
this,
214+
var domain_dialog = new Adw.AlertDialog (
216215
"Set a Custom Domain",
217-
"If you’re self-hosting Plausible or using an instance other than <b>%s</b>, set the domain name here.".printf (domain)
216+
"If you’re self-hosting Plausible or using an instance other than <b>%s</b>, set the domain name.".printf (domain)
218217
) {
219218
body_use_markup = true,
220219
default_response = "save",
@@ -224,7 +223,7 @@ public class Plausible.MainWindow : Adw.ApplicationWindow {
224223
domain_dialog.add_response ("save", _("_Set Domain"));
225224
domain_dialog.set_response_appearance ("save", Adw.ResponseAppearance.SUGGESTED);
226225

227-
domain_dialog.present ();
226+
domain_dialog.present (this);
228227

229228
domain_dialog.response.connect ((response_id) => {
230229
if (response_id == "save") {

0 commit comments

Comments
 (0)