[vlc-devel] [PATCH 15/33] QML: put the video tab before the music tab

Adrien Maglo magsoft at videolan.org
Wed Jun 12 14:01:22 CEST 2019


---
 modules/gui/qt/qml/MainInterface.qml             |  2 +-
 modules/gui/qt/qml/mediacenter/MCMainDisplay.qml | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/modules/gui/qt/qml/MainInterface.qml b/modules/gui/qt/qml/MainInterface.qml
index d104fb44b5..c6ad268015 100644
--- a/modules/gui/qt/qml/MainInterface.qml
+++ b/modules/gui/qt/qml/MainInterface.qml
@@ -78,7 +78,7 @@ Rectangle {
     Component.onCompleted: {
         //set the initial view
         if (medialib)
-            history.push(["mc", "music", "albums"], History.Go)
+            history.push(["mc", "video"], History.Go)
         else
             history.push(["playlist"], History.Go)
     }
diff --git a/modules/gui/qt/qml/mediacenter/MCMainDisplay.qml b/modules/gui/qt/qml/mediacenter/MCMainDisplay.qml
index b8ade228ea..72487fbe18 100644
--- a/modules/gui/qt/qml/mediacenter/MCMainDisplay.qml
+++ b/modules/gui/qt/qml/mediacenter/MCMainDisplay.qml
@@ -50,15 +50,15 @@ Utils.NavigableFocusScope {
 
     readonly property var pageModel: [
         {
-            displayText: qsTr("Music"),
-            pic: "qrc:///sidebar/music.svg",
-            name: "music",
-            component: musicComp
-        }, {
             displayText: qsTr("Video"),
             pic: "qrc:///sidebar/movie.svg",
             name: "video",
             component: videoComp
+        }, {
+            displayText: qsTr("Music"),
+            pic: "qrc:///sidebar/music.svg",
+            name: "music",
+            component: musicComp
         }, {
             displayText: qsTr("Network"),
             pic: "qrc:///sidebar/screen.svg",
-- 
2.20.1



More information about the vlc-devel mailing list