Just fixes
This commit is contained in:
@@ -44,9 +44,9 @@ MediaPlayer {
|
||||
property bool isPaused: false
|
||||
property int stationOk: 3
|
||||
property int maxTagClicks: 0
|
||||
property int playlistCount: playlist.count - 1
|
||||
//property int playlistIndex: Favorites.getSetting("playlistIndex",-1)
|
||||
property int playlistIndex: -1
|
||||
property int playlistCount: playlist.count -1
|
||||
property int playlistIndex: Favorites.getSetting("playlistIndex",-1)
|
||||
//property int playlistIndex: playlistCount = Favorites.getSetting("playlistIndex",-1)
|
||||
property QDtimer timer: QDtimer {
|
||||
id: qdTimer
|
||||
interval: 200; running: false; repeat: false
|
||||
@@ -155,12 +155,12 @@ MediaPlayer {
|
||||
|
||||
|
||||
function playNext() {
|
||||
if (playlistIndex < playlistCount && playlistIndex < playlist.count) playlistIndex = playlistIndex + 1
|
||||
if (playlistIndex < playlistCount) playlistIndex = playlistIndex + 1
|
||||
loadPlaylistSelected()
|
||||
}
|
||||
|
||||
function playPrev() {
|
||||
if (playlistIndex <= playlistCount && playlistIndex > -1) playlistIndex = playlistIndex - 1 //: playlistIndex = 0
|
||||
if (playlistIndex <= playlistCount) playlistIndex = playlistIndex - 1 //: playlistIndex = 0
|
||||
loadPlaylistSelected()
|
||||
}
|
||||
|
||||
@@ -196,7 +196,7 @@ MediaPlayer {
|
||||
isPlaying = true
|
||||
isPaused = false
|
||||
qdTimer.start()
|
||||
//Favorites.setSetting("playlistIndex",playlistIndex)
|
||||
if (_favorite) Favorites.setSetting("playlistIndex",playlistIndex)
|
||||
}
|
||||
|
||||
onError: {
|
||||
@@ -383,6 +383,7 @@ MediaPlayer {
|
||||
_favorite = playHistory.get(0).favorite
|
||||
isPlaying = false
|
||||
isPaused = true
|
||||
///if (_favorite) playlistCount = Favorites.getSetting("playlistIndex",-1)
|
||||
//playlistIndex = allradioSettings.value("currentFavorite",-1)
|
||||
// pageStack.push("RadioPlayerPage.qml")
|
||||
}
|
||||
@@ -434,6 +435,6 @@ MediaPlayer {
|
||||
|
||||
|
||||
|
||||
Component.onCompleted: {reloadDbData();loadRecentPlay()}
|
||||
Component.onCompleted: {reloadDbData();_favorite ? loadPlaylistSelected() : loadRecentPlay()}
|
||||
}
|
||||
|
||||
|
||||
@@ -29,12 +29,12 @@ Column {
|
||||
}
|
||||
|
||||
Label {
|
||||
text: radioBrowser.serversModel.count > 0 ? "Found: "+radioBrowser.serversModel.count + " servers" : "Searching for servers..."
|
||||
text: radioBrowser.serversModel.count > 0 ? qsTr("Found")+": "+radioBrowser.serversModel.count + " "+qsTr("servers") : qsTr("Searching for servers...")
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
}
|
||||
Label {
|
||||
visible: radioBrowser.serversModel.count > 0
|
||||
text: "Connecting to:"
|
||||
text: qsTr("Connecting to:")
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
}
|
||||
Label {
|
||||
|
||||
Reference in New Issue
Block a user