[gnome-software] Set reboot notifications as urgent to avoid them timing out (Fixes: #341)
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Set reboot notifications as urgent to avoid them timing out (Fixes: #341)
- Date: Fri, 14 Sep 2018 14:21:35 +0000 (UTC)
commit e36f7e01e910894f18698712f5bde12375bac974
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]