[vlc-commits] [Git][videolan/vlc][master] qml/MediaGroupList: Add 99+ support for labels

Jean-Baptiste Kempf gitlab at videolan.org
Thu May 13 10:40:10 UTC 2021



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
a966f7d5 by Benjamin Arnaud at 2021-05-13T10:07:55+00:00
qml/MediaGroupList: Add 99+ support for labels

- - - - -


1 changed file:

- modules/gui/qt/medialibrary/qml/MediaGroupList.qml


Changes:

=====================================
modules/gui/qt/medialibrary/qml/MediaGroupList.qml
=====================================
@@ -150,9 +150,12 @@ Widgets.NavigableFocusScope {
                 model.resolution_name || "",
                 model.channel         || ""
             ].filter(function(a) { return a !== "" });
-        } else return [
-            string.arg(count)
-        ];
+        } else {
+            if (count < 100)
+                return [ string.arg(count) ];
+            else
+                return [ string.arg("99+") ];
+        }
     }
 
     //---------------------------------------------------------------------------------------------



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a966f7d5c69c1d2974c77ef049112bb7800d7692

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a966f7d5c69c1d2974c77ef049112bb7800d7692
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list