[gnome-software: 1/2] gs-updates-page: Ensure label is set in ACTION_GET_UPDATES state




commit ed191ca9ac5c128f1dd64fbcd42aa51a42000ca9
Author: Philip Withnall <pwithnall endlessos org>
Date:   Tue Jun 29 11:53:12 2021 +0100

    gs-updates-page: Ensure label is set in ACTION_GET_UPDATES state
    
    The `label_updates_spinner` label is empty by default, and is shown when
    the `spinner` page is shown. The `spinner` page is shown in the
    `GS_UPDATES_PAGE_STATE_ACTION_GET_UPDATES` state, so the label needs to
    have some content set in that state.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>
    
    Fixes: #1287

 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 2233e22b1..d90a8b4d9 100644
--- a/src/gs-updates-page.c
+++ b/src/gs-updates-page.c
@@ -243,6 +243,7 @@ gs_updates_page_update_ui_state (GsUpdatesPage *self)
                                     _("Setting Up Updates…"));
                break;
        case GS_UPDATES_PAGE_STATE_ACTION_REFRESH:
+       case GS_UPDATES_PAGE_STATE_ACTION_GET_UPDATES:
                gtk_label_set_label (GTK_LABEL (self->label_updates_spinner),
                                     /* TRANSLATORS: the update panel is doing *something* vague */
                                     _("Looking for New Updates…"));


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