Skip to content

Commit

Permalink
MainWindow: Update Log Out 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 f09d2d2 commit 9e62c7d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,7 @@ public class Plausible.MainWindow : Adw.ApplicationWindow {
private void on_log_out_activate () {
string domain = App.settings.get_string ("domain");

var log_out_dialog = new Adw.MessageDialog (
this,
var log_out_dialog = new Adw.AlertDialog (
"Log out of Plausible?",
"You will need to re-enter your email and password for <b>%s</b> to log back in.".printf (domain)
) {
Expand All @@ -258,7 +257,7 @@ public class Plausible.MainWindow : Adw.ApplicationWindow {
log_out_dialog.add_response ("log_out", _("_Log Out"));
log_out_dialog.set_response_appearance ("log_out", Adw.ResponseAppearance.DESTRUCTIVE);

log_out_dialog.present ();
log_out_dialog.present (this);

log_out_dialog.response.connect ((response_id) => {
if (response_id == "log_out") {
Expand Down

0 comments on commit 9e62c7d

Please sign in to comment.