[gnome-software/gnome-3-30] Set reboot notifications as urgent to avoid them timing out (Fixes: #341)



commit 60d28d6fcfc67f121bc156378f5c5f49fa23d128
Author: Mario Limonciello <mario limonciello dell com>
Date:   Thu Sep 13 12:28:58 2018 -0500

    Set reboot notifications as urgent to avoid them timing out (Fixes: #341)
    
    It was confirmed in https://bugzilla.gnome.org/show_bug.cgi?id=783719
    that this field will influence the timeout

 src/gs-updates-section.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/gs-updates-section.c b/src/gs-updates-section.c
index 222c062f..c17d5789 100644
--- a/src/gs-updates-section.c
+++ b/src/gs-updates-section.c
@@ -302,6 +302,7 @@ _perform_update_cb (GsPluginLoader *plugin_loader, GAsyncResult *res, gpointer u
                /* TRANSLATORS: button text */
                g_notification_add_button_with_target (n, _("Restart"), "app.reboot", NULL);
                g_notification_set_default_action_and_target (n, "app.set-mode", "s", "updates");
+               g_notification_set_priority (n, G_NOTIFICATION_PRIORITY_URGENT);
                g_application_send_notification (g_application_get_default (), "restart-required", n);
        }
        g_clear_object (&self->cancellable);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]