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



commit 057eea7cc03d647544b5819ff37951f7bfffb77e
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-page.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/gs-updates-page.c b/src/gs-updates-page.c
index fa77dbd9..cd9db05d 100644
--- a/src/gs-updates-page.c
+++ b/src/gs-updates-page.c
@@ -751,6 +751,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);
        }
 }


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