[gnome-software/wip/mcrha/flatpak-title-as-name] flatpak: Use remote title as the GsApp name
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/mcrha/flatpak-title-as-name] flatpak: Use remote title as the GsApp name
- Date: Mon, 4 Oct 2021 16:51:07 +0000 (UTC)
commit a19b73485a97cf3d26aa401c14116e33486bd446
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]