Skip to content

Commit

Permalink
MainWindow: Update Domain dialog to new GNOME style
Browse files Browse the repository at this point in the history
  • Loading branch information
cassidyjames committed Apr 22, 2024
1 parent 51647a7 commit f09d2d2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,9 @@ public class Plausible.MainWindow : Adw.ApplicationWindow {
domain_grid.attach (domain_label, 0, 0);
domain_grid.attach (domain_entry, 1, 0);

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

domain_dialog.present ();
domain_dialog.present (this);

domain_dialog.response.connect ((response_id) => {
if (response_id == "save") {
Expand Down

0 comments on commit f09d2d2

Please sign in to comment.