From 99c9d906e4a447669213e107faefc5f9190e79d2 Mon Sep 17 00:00:00 2001 From: Kitteh Date: Thu, 25 Oct 2018 17:58:18 +0100 Subject: [PATCH] [UI] Made tracks menu show currently playing track as default. --- src/qml/main.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/qml/main.qml b/src/qml/main.qml index c0ac87b..ac5130b 100644 --- a/src/qml/main.qml +++ b/src/qml/main.qml @@ -103,7 +103,7 @@ ApplicationWindow { value: trackID }) if (player.getProperty("track-list/" + track + "/selected")) { - subList.currentIndex = subList.count + subList.currentIndex = subList.count - 1 } } else if (trackType == "audio") { audioModel.append({ @@ -112,7 +112,7 @@ ApplicationWindow { value: trackID }) if (player.getProperty("track-list/" + track + "/selected")) { - audioList.currentIndex = audioList.count + audioList.currentIndex = audioList.count - 1 } } else if (trackType == "video") { vidModel.append({ @@ -120,7 +120,7 @@ ApplicationWindow { value: trackID }) if (player.getProperty("track-list/" + track + "/selected")) { - vidList.currentIndex = vidList.count + vidList.currentIndex = vidList.count - 1 } } }