[vlc-commits] [Git][videolan/vlc][master] 3 commits: qml: hide the browse empty label while sources are loading

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Fri Oct 2 15:31:36 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
00ba3bca by Leon Vitanos at 2026-10-02T16:31:58+02:00
qml: hide the browse empty label while sources are loading

- - - - -
dd982054 by Leon Vitanos at 2026-10-02T16:31:58+02:00
qml: include the computer section in the browse empty label

- - - - -
5cb59f57 by Leon Vitanos at 2026-10-02T16:31:58+02:00
qml: add focus to the computer section on the browse page

- - - - -


1 changed file:

- modules/gui/qt/network/qml/BrowseHomeDisplay.qml


Changes:

=====================================
modules/gui/qt/network/qml/BrowseHomeDisplay.qml
=====================================
@@ -96,6 +96,8 @@ Widgets.PageExt {
     function setCurrentItemFocus(reason) {
         if (foldersSection.visible)
             foldersSection.setCurrentItemFocus(reason);
+        else if (computerSection.visible)
+            computerSection.setCurrentItemFocus(reason);
         else if (deviceSection.visible)
             deviceSection.setCurrentItemFocus(reason);
         else if (lanSection.visible)
@@ -111,9 +113,8 @@ Widgets.PageExt {
     T.Label {
         anchors.centerIn: parent
 
-        visible: (foldersSection.model.count === 0 && deviceSection.model.count === 0
-                  &&
-                  lanSection.model.count === 0)
+        visible: [foldersSection, computerSection, deviceSection, lanSection]
+                 .every(section => !section.model.loading && section.model.count === 0)
 
         font.pixelSize: VLCStyle.fontHeight_xxlarge
         color: root.activeFocus ? theme.accent : theme.fg.primary



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/53a1f8b7e7cb8adc75c85445e74c095c01c6b590...5cb59f573667fc7f5f5e69117ce316b9d8562676

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/53a1f8b7e7cb8adc75c85445e74c095c01c6b590...5cb59f573667fc7f5f5e69117ce316b9d8562676
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list