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

push fixes to medai playback controls

parent 43f1b530
......@@ -55,7 +55,7 @@ Maui.ApplicationWindow
/***************************************************/
/******************** 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: ({
babe: "0",
stars: "0"
......@@ -297,7 +297,7 @@ Maui.ApplicationWindow
{
id: shuffleBtn
iconColor: textColor
iconName: isShuffle ? "media-playlist-shuffle" : "media-playlist-repeat"
iconName: isShuffle ? "media-playlist-shuffle" : "media-playlist-normal"
onClicked:
{
isShuffle = !isShuffle
......
......@@ -3,7 +3,7 @@
Cloud::Cloud(QObject *parent) : BaseList (parent)
{
this->fm = FM::getInstance();
this->fm = new FM(this);
this->setList();
connect(this->fm, &FM::cloudServerContentReady, [this](const FMH::MODEL_LIST &list, const QString &url)
......
......@@ -103,7 +103,7 @@ function nextTrack()
function previousTrack()
{
if(!mainlistEmpty>0)
if(!mainlistEmpty)
{
var previous = previous = currentTrackIndex-1 >= 0 ? mainPlaylist.listView.currentIndex-1 : currentTrackIndex-1
prevTrackIndex = mainPlaylist.listView.currentIndex
......@@ -113,7 +113,7 @@ function previousTrack()
function shuffle()
{
var pos = Math.floor(Math.random() * mainPlaylist.list.count)
var pos = Math.floor(Math.random() * mainPlaylist.listView.count)
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