From 67280bcb6880e9402d1258cc3b94c7445a9db650 Mon Sep 17 00:00:00 2001 From: heliguy Date: Wed, 27 Mar 2024 18:10:56 -0400 Subject: [PATCH] Fix trash data dialog in properties dialog --- src/properties_window.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/properties_window.py b/src/properties_window.py index 61483e9..cb0014e 100644 --- a/src/properties_window.py +++ b/src/properties_window.py @@ -156,15 +156,15 @@ class PropertiesWindow(Adw.Dialog): Adw.Toast.new(_("Could not trash user data")) ) - dialog = Adw.MessageDialog.new( - self, _("Send {}'s User Data to the Trash?").format(self.app_name) + dialog = Adw.AlertDialog.new( + _("Send {}'s User Data to the Trash?").format(self.app_name) ) dialog.add_response("cancel", _("Cancel")) dialog.set_close_response("cancel") dialog.add_response("continue", _("Trash Data")) dialog.set_response_appearance("continue", Adw.ResponseAppearance.DESTRUCTIVE) dialog.connect("response", on_response, dialog.choose_finish) - dialog.present() + dialog.present(self) def __init__(self, flatpak_index, host_flatpaks, parent_window, **kwargs): super().__init__(**kwargs)