[gnome-software/1261-uncheckable-checkbox-next-to-openh264-extension] gs-app-addon-row: Treat updatable-live state the same as updatable state



commit 59197c62ae3cd160d6a3c025df52fceefb530c32
Author: Milan Crha <mcrha redhat com>
Date:   Tue May 18 10:14:06 2021 +0200

    gs-app-addon-row: Treat updatable-live state the same as updatable state
    
    Just a missing state in the switch(), causing incorrect row state being
    presented to the user.
    
    Closes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1261

 src/gs-app-addon-row.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/gs-app-addon-row.c b/src/gs-app-addon-row.c
index bc610e0d0..20aa50c03 100644
--- a/src/gs-app-addon-row.c
+++ b/src/gs-app-addon-row.c
@@ -141,6 +141,7 @@ gs_app_addon_row_refresh (GsAppAddonRow *row)
                gtk_list_box_row_set_activatable (GTK_LIST_BOX_ROW (row), TRUE);
                break;
        case GS_APP_STATE_UPDATABLE:
+       case GS_APP_STATE_UPDATABLE_LIVE:
        case GS_APP_STATE_INSTALLED:
                gtk_widget_set_visible (row->checkbox, FALSE);
                gtk_widget_set_visible (row->button_remove, !gs_app_has_quirk (row->app, 
GS_APP_QUIRK_COMPULSORY));


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