[gnome-software] Capitalize "Flathub Beta"



commit f151d0e81911b91098d10231e679750367d1cba3
Author: Kalev Lember <klember redhat com>
Date:   Thu Feb 21 17:22:55 2019 +0100

    Capitalize "Flathub Beta"
    
    We should switch to use flatpak_remote_get_title() here, but let's just
    do a quick hack for now and make "Flathub Beta" look nice, similar to
    what we are already doing with "Flathub".

 lib/gs-app.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/lib/gs-app.c b/lib/gs-app.c
index aa6f2a06..cb5e93b2 100644
--- a/lib/gs-app.c
+++ b/lib/gs-app.c
@@ -4461,9 +4461,11 @@ gs_app_get_origin_ui (GsApp *app)
                return g_strdup (_("Local file"));
        }
 
-       /* capitalize "Flathub" */
+       /* capitalize "Flathub" and "Flathub Beta" */
        if (g_strcmp0 (gs_app_get_origin (app), "flathub") == 0) {
                return g_strdup ("Flathub");
+       } else if (g_strcmp0 (gs_app_get_origin (app), "flathub-beta") == 0) {
+               return g_strdup ("Flathub Beta");
        }
 
        /* fall back to origin */


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