[vlc-commits] [Git][videolan/vlc][master] qml: indicate playlist count in top bar playlist button tool tip

Steve Lhomme (@robUx4) gitlab at videolan.org
Wed May 13 16:29:49 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
135ecf7f by Fatih Uzunoglu at 2026-05-13T16:18:16+00:00
qml: indicate playlist count in top bar playlist button tool tip

- - - - -


1 changed file:

- modules/gui/qt/maininterface/qml/BannerSources.qml


Changes:

=====================================
modules/gui/qt/maininterface/qml/BannerSources.qml
=====================================
@@ -411,7 +411,12 @@ T.ToolBar {
 
                             font.pixelSize: VLCStyle.icon_banner
                             text: VLCIcons.playlist
-                            description: qsTr("Playlist")
+                            description: {
+                                const count = MainPlaylistController.count
+                                return (count > 0) ? qsTr("Playlist (%1 item)", "Playlist (%1 items)", count).arg(count)
+                                                   : qsTr("Playlist")
+                            }
+
                             width: VLCStyle.bannerButton_width
                             height: VLCStyle.bannerButton_height
                             highlighted: MainCtx.playlistVisible



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

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




More information about the vlc-commits mailing list