[vlc-commits] [Git][videolan/vlc][master] qml:previous button related fixes

Hugo Beauzée-Luyssen gitlab at videolan.org
Fri Jun 4 10:22:28 UTC 2021



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC


Commits:
851d7f33 by Huang Jie at 2021-06-04T09:48:06+00:00
qml:previous button related fixes

fixes #25780

- - - - -


1 changed file:

- modules/gui/qt/maininterface/qml/MainInterface.qml


Changes:

=====================================
modules/gui/qt/maininterface/qml/MainInterface.qml
=====================================
@@ -93,15 +93,14 @@ Rectangle {
 
     function setInitialView() {
         //set the initial view
-        if (!mainPlaylistController.empty)
-            history.push(["player"])
+        var loadPlayer = !mainPlaylistController.empty;
+        if (medialib)
+            history.push(["mc", "video"], loadPlayer ? History.Stay : History.Go)
         else
-        {
-            if (medialib)
-                history.push(["mc", "video"])
-            else
-                history.push(["mc", "home"])
-        }
+            history.push(["mc", "home"], loadPlayer ? History.Stay : History.Go)
+
+        if (loadPlayer)
+            history.push(["player"])
     }
 
 



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/851d7f33234385a6879cb5d45b6c57d6a34a0cda
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list