1
0
Fork 0

[UI] Made tracks menu show currently playing track as default.

This commit is contained in:
Kitteh 2018-10-25 17:58:18 +01:00
parent 85b8726d98
commit 99c9d906e4

View file

@ -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
}
}
}