[gnome-software] Don't allow a manual updates refresh when offline
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Don't allow a manual updates refresh when offline
- Date: Mon, 28 Nov 2016 09:16:38 +0000 (UTC)
commit c792df59f339ec3f06c3f20fbcf23ed183ed4453
Author: Richard Hughes <richard hughsie com>
Date: Sun Nov 27 21:27:31 2016 +0000
Don't allow a manual updates refresh when offline
src/gs-shell-updates.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell-updates.c b/src/gs-shell-updates.c
index 6d2f47b..46f844e 100644
--- a/src/gs-shell-updates.c
+++ b/src/gs-shell-updates.c
@@ -324,6 +324,8 @@ gs_shell_updates_update_ui_state (GsShellUpdates *self)
}
break;
}
+ gtk_widget_set_sensitive (self->button_refresh,
+ gs_plugin_loader_get_network_available (self->plugin_loader));
/* headerbar update button */
gtk_widget_set_visible (self->button_update_all,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]