[gnome-software/gnome-41: 1/2] flatpak: Use remote title as the GsApp name




commit 0dd397536c9fbe9fdc3e040f668d6dc3a6f30fb3
Author: Milan Crha <mcrha redhat com>
Date:   Mon Oct 4 18:49:24 2021 +0200

    flatpak: Use remote title as the GsApp name
    
    The remote title is used as a summary, but it should be used also
    as a name, thus it's shown in the Repositories dialog, the same
    as it's shown for the RPM and other repositories.

 plugins/flatpak/gs-flatpak-utils.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/plugins/flatpak/gs-flatpak-utils.c b/plugins/flatpak/gs-flatpak-utils.c
index ec0b397e3..0e8fe504d 100644
--- a/plugins/flatpak/gs-flatpak-utils.c
+++ b/plugins/flatpak/gs-flatpak-utils.c
@@ -98,8 +98,10 @@ gs_flatpak_app_new_from_remote (GsPlugin *plugin,
 
        /* title */
        title = flatpak_remote_get_title (xremote);
-       if (title != NULL)
+       if (title != NULL) {
                gs_app_set_summary (app, GS_APP_QUALITY_LOWEST, title);
+               gs_app_set_name (app, GS_APP_QUALITY_NORMAL, title);
+       }
 
        /* origin_ui on a remote is the repo dialogue section name,
         * not the remote title */


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