[gnome-software/wip/rancell/ubuntu-3-20-rebase: 60/62] Disable the update all button during an update
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/rancell/ubuntu-3-20-rebase: 60/62] Disable the update all button during an update
- Date: Sat, 17 Jun 2017 10:03:59 +0000 (UTC)
commit c785002175cce8c99cbce3b6bfd4ef9ec6b80b64
Author: William Hua <william hua canonical com>
Date: Thu Apr 14 16:44:58 2016 -0400
Disable the update all button during an update
src/gs-shell-updates.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell-updates.c b/src/gs-shell-updates.c
index 097e1bb..ceeceda 100644
--- a/src/gs-shell-updates.c
+++ b/src/gs-shell-updates.c
@@ -955,6 +955,8 @@ gs_shell_updates_perform_update_cb (GsPluginLoader *plugin_loader,
{
g_autoptr(GError) error = NULL;
+ gtk_widget_set_sensitive (GTK_WIDGET (self->button_update_all), TRUE);
+
/* get the results */
if (!gs_plugin_loader_update_finish (plugin_loader, res, &error)) {
g_warning ("Failed to perform update: %s", error->message);
@@ -1001,6 +1003,8 @@ gs_shell_updates_button_update_all_cb (GtkButton *button,
g_autoptr(GError) error = NULL;
g_autoptr(GList) apps = NULL;
+ gtk_widget_set_sensitive (GTK_WIDGET (self->button_update_all), FALSE);
+
/* do the offline update */
apps = gs_update_list_get_apps (GS_UPDATE_LIST (self->list_box_updates));
gs_plugin_loader_update_async (self->plugin_loader,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]