[gnome-software: 12/14] gs-details-page: Show ‘Uninstalling’ progress text while uninstalling




commit 3db202143ebb90061430c60c855d54dfba66d8dd
Author: Philip Withnall <pwithnall endlessos org>
Date:   Fri Aug 13 10:20:43 2021 +0100

    gs-details-page: Show ‘Uninstalling’ progress text while uninstalling
    
    Rather than ‘Preparing’.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>
    
    Helps: #1351

 src/gs-details-page.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-details-page.c b/src/gs-details-page.c
index e0b9a3ca5..ed81f8e36 100644
--- a/src/gs-details-page.c
+++ b/src/gs-details-page.c
@@ -394,8 +394,14 @@ gs_details_page_refresh_progress (GsDetailsPage *self)
        case GS_APP_STATE_REMOVING:
                percentage = gs_app_get_progress (self->app);
                if (percentage == GS_APP_PROGRESS_UNKNOWN) {
-                       /* Translators: This string is shown when preparing to download and install an app. */
-                       gtk_label_set_label (GTK_LABEL (self->label_progress_status), _("Preparing…"));
+                       if (state == GS_APP_STATE_INSTALLING) {
+                               /* Translators: This string is shown when preparing to download and install 
an app. */
+                               gtk_label_set_label (GTK_LABEL (self->label_progress_status), 
_("Preparing…"));
+                       } else {
+                               /* Translators: This string is shown when uninstalling an app. */
+                               gtk_label_set_label (GTK_LABEL (self->label_progress_status), 
_("Uninstalling…"));
+                       }
+
                        gtk_widget_set_visible (self->label_progress_status, TRUE);
                        gtk_widget_set_visible (self->label_progress_percentage, FALSE);
                        gs_progress_button_set_progress (self->button_cancel, percentage);


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