Commit 1aba8587 authored by Camilo higuita's avatar Camilo higuita

push fixes to medai playback controls

parent 43f1b530
...@@ -55,7 +55,7 @@ Maui.ApplicationWindow ...@@ -55,7 +55,7 @@ Maui.ApplicationWindow
/***************************************************/ /***************************************************/
/******************** PLAYBACK ********************/ /******************** PLAYBACK ********************/
/*************************************************/ /*************************************************/
property bool isShuffle: bae.loadSetting("SHUFFLE","PLAYBACK", false) == "true" ? true : false property bool isShuffle: /*bae.loadSetting("SHUFFLE","PLAYBACK", false) == "true" ? true :*/ false
property var currentTrack: ({ property var currentTrack: ({
babe: "0", babe: "0",
stars: "0" stars: "0"
...@@ -297,7 +297,7 @@ Maui.ApplicationWindow ...@@ -297,7 +297,7 @@ Maui.ApplicationWindow
{ {
id: shuffleBtn id: shuffleBtn
iconColor: textColor iconColor: textColor
iconName: isShuffle ? "media-playlist-shuffle" : "media-playlist-repeat" iconName: isShuffle ? "media-playlist-shuffle" : "media-playlist-normal"
onClicked: onClicked:
{ {
isShuffle = !isShuffle isShuffle = !isShuffle
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
Cloud::Cloud(QObject *parent) : BaseList (parent) Cloud::Cloud(QObject *parent) : BaseList (parent)
{ {
this->fm = FM::getInstance(); this->fm = new FM(this);
this->setList(); this->setList();
connect(this->fm, &FM::cloudServerContentReady, [this](const FMH::MODEL_LIST &list, const QString &url) connect(this->fm, &FM::cloudServerContentReady, [this](const FMH::MODEL_LIST &list, const QString &url)
......
...@@ -103,7 +103,7 @@ function nextTrack() ...@@ -103,7 +103,7 @@ function nextTrack()
function previousTrack() function previousTrack()
{ {
if(!mainlistEmpty>0) if(!mainlistEmpty)
{ {
var previous = previous = currentTrackIndex-1 >= 0 ? mainPlaylist.listView.currentIndex-1 : currentTrackIndex-1 var previous = previous = currentTrackIndex-1 >= 0 ? mainPlaylist.listView.currentIndex-1 : currentTrackIndex-1
prevTrackIndex = mainPlaylist.listView.currentIndex prevTrackIndex = mainPlaylist.listView.currentIndex
...@@ -113,7 +113,7 @@ function previousTrack() ...@@ -113,7 +113,7 @@ function previousTrack()
function shuffle() function shuffle()
{ {
var pos = Math.floor(Math.random() * mainPlaylist.list.count) var pos = Math.floor(Math.random() * mainPlaylist.listView.count)
return pos return pos
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment