[vlc-commits] [Git][videolan/vlc][master] qml: fix navigation to empty label in video views

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Sat Apr 1 20:31:19 UTC 2023



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
6e190241 by Prince Gupta at 2023-04-01T20:13:39+00:00
qml: fix navigation to empty label in video views

- - - - -


1 changed file:

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


Changes:

=====================================
modules/gui/qt/medialibrary/qml/VideoAllSubDisplay.qml
=====================================
@@ -89,9 +89,11 @@ VideoAll {
 
     function setCurrentItemFocus(reason) {
         if (headerItem && headerItem.focus)
-            headerItem.forceActiveFocus(reason)
+            headerItem.forceActiveFocus(reason) // continue watching section
+        else if (currentItem.setCurrentItemFocus)
+            currentItem.setCurrentItemFocus(reason) // grid or list view
         else
-            currentItem.setCurrentItemFocus(reason)
+            currentItem.forceActiveFocus(reason) // empty label
     }
 
     // VideoAll events reimplementation



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

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