[gnome-software] Always show the full screen update spinner when re-getting the list of updates
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Always show the full screen update spinner when re-getting the list of updates
- Date: Mon, 14 Nov 2016 13:41:56 +0000 (UTC)
commit a18a5b4d12369e24ff0457edc6ff2dbf60bd2f54
Author: Richard Hughes <richard hughsie com>
Date: Mon Nov 14 12:49:31 2016 +0000
Always show the full screen update spinner when re-getting the list of updates
We don't hide the apps we are aware already need updates in the refresh phase
(the bit where the packages actually get downloaded) but when we do the quick
check for downloaded updates after the refresh we always need to clear the
screen and show something. Although this should be nearly instant, in some
cases it takes a couple of seconds.
Quite why so long needs investigating.
src/gs-shell-updates.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-shell-updates.c b/src/gs-shell-updates.c
index 855c44e..51cc1ae 100644
--- a/src/gs-shell-updates.c
+++ b/src/gs-shell-updates.c
@@ -340,8 +340,11 @@ gs_shell_updates_update_ui_state (GsShellUpdates *self)
case GS_SHELL_UPDATES_STATE_FAILED:
gtk_stack_set_visible_child_name (GTK_STACK (self->stack_updates), "failed");
break;
- case GS_SHELL_UPDATES_STATE_ACTION_REFRESH:
case GS_SHELL_UPDATES_STATE_ACTION_GET_UPDATES:
+ gtk_stack_set_visible_child_name (GTK_STACK (self->stack_updates),
+ "spinner");
+ break;
+ case GS_SHELL_UPDATES_STATE_ACTION_REFRESH:
if (self->result_flags != GS_SHELL_UPDATES_FLAG_NONE) {
gtk_stack_set_visible_child_name (GTK_STACK (self->stack_updates), "view");
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]