[vlc-commits] [Git][videolan/vlc][master] qml: fix twitching at initialization in `HomePage`
Steve Lhomme (@robUx4)
gitlab at videolan.org
Sat Aug 2 12:11:34 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
f2d969df by Fatih Uzunoglu at 2025-08-02T11:47:17+00:00
qml: fix twitching at initialization in `HomePage`
It is fair to assume that at least one of the three
sub-sections contains something within 50ms after
initialization to fix the twitching.
- - - - -
1 changed file:
- modules/gui/qt/medialibrary/qml/HomePage.qml
Changes:
=====================================
modules/gui/qt/medialibrary/qml/HomePage.qml
=====================================
@@ -92,8 +92,16 @@ T.Page {
topMargin: VLCStyle.layoutTitle_top_padding
bottomMargin: topMargin
- property bool _hasMedias: continueWatchingRow.visible || favoritesRow.visible || newMediaRow.visible
+ property bool _hasMedias: true
+ Timer {
+ interval: 50
+ running: true
+
+ onTriggered: {
+ flickable._hasMedias = Qt.binding(() => { return continueWatchingRow.visible || favoritesRow.visible || newMediaRow.visible } )
+ }
+ }
ScrollBar.vertical: Widgets.ScrollBarExt {}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f2d969df60a869e1df36b0053fccb483cb7edde4
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f2d969df60a869e1df36b0053fccb483cb7edde4
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list