[vlc-commits] [Git][videolan/vlc][master] qml: replace the home startup timer with a model loading check

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Fri Oct 9 11:45:30 UTC 2026



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


Commits:
02a591f1 by Leon Vitanos at 2026-10-09T13:16:56+02:00
qml: replace the home startup timer with a model loading check

this way we don't treat unloaded home rows as an empty library at startup, avoiding the layout flashing

- - - - -


1 changed file:

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


Changes:

=====================================
modules/gui/qt/medialibrary/qml/HomePage.qml
=====================================
@@ -97,6 +97,14 @@ Widgets.PageExt {
 
         property bool _hasMedias: true
 
+        Binding on _hasMedias {
+            when: !continueWatchingRow.model.loading && !favoritesRow.model.loading
+                  && !newVideoRow.model.loading && !newMusicRow.model.loading
+            value: continueWatchingRow.visible || favoritesRow.visible
+                   || newVideoRow.visible || newMusicRow.visible
+            restoreMode: Binding.RestoreNone
+        }
+
         T.ScrollBar.vertical: Widgets.ScrollBarExt {}
 
         // This behavior allows to have similar "smooth" animation
@@ -133,10 +141,6 @@ Widgets.PageExt {
                 // it if touch is detected through the hover handler:
                 MainCtx.setFiltersChildMouseEvents(flickable, false)
             }
-
-            MainCtx.setTimeout(() => {
-                flickable._hasMedias = Qt.binding(() => { return continueWatchingRow.visible || favoritesRow.visible || newVideoRow.visible || newMusicRow.visible } )
-            }, 50, [], flickable)
         }
 
         readonly property bool usingTouch: MainCtx.usingTouch



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/02a591f19ae4fba7f8ba61574912f2e3fd8a3a59
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