[vlc-commits] [Git][videolan/vlc][master] qt: navigate back to Home when Continue Watching becomes empty

Steve Lhomme (@robUx4) gitlab at videolan.org
Sun Aug 2 06:42:53 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
dea27581 by SK Devane at 2026-08-02T06:02:11+00:00
qt: navigate back to Home when Continue Watching becomes empty

- - - - -


1 changed file:

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


Changes:

=====================================
modules/gui/qt/medialibrary/qml/HomeDisplay.qml
=====================================
@@ -90,6 +90,14 @@ Widgets.PageLoader {
                     sortCriteria: continueWatchingPage.sort.criteria
                     sortOrder: continueWatchingPage.sort.order
                     searchPattern: continueWatchingPage.search.pattern
+
+                    readonly property bool needToNavigateBack: !loading && count === 0
+                                                               && continueWatchingPage.search.pattern === ""
+
+                    onNeedToNavigateBackChanged: {
+                        if (needToNavigateBack)
+                            History.previous(Qt.BacktabFocusReason)
+                    }
                 }
 
                 sectionProperty: model.sortCriteria === "title" ? "title_first_symbol" : ""



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

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