Added autoplay function (can be changed in settings)

This commit is contained in:
Niels
2025-06-08 12:21:38 +02:00
parent 158b40516a
commit 69be0689d6
10 changed files with 162 additions and 78 deletions
+1
View File
@@ -229,6 +229,7 @@ MediaPlayer {
isPaused = false
qdTimer.start()
if (_favorite) Favorites.setSetting("playlistIndex",playlistIndex)
//appStartPlay = false
}
function tryagain() {
+13 -9
View File
@@ -6,7 +6,6 @@ import QtGraphicalEffects 1.0
Column {
id: column
spacing: Theme.paddingMedium
//property alias busy: busyIndicator.running
anchors.centerIn: parent
Image {
@@ -21,27 +20,32 @@ Column {
source: parent
color: Theme.highlightColor
}
// BusyIndicator {
// size: BusyIndicatorSize.Large
// anchors.centerIn: parent
// running: parent.visible
// }
}
Label {
text: radioBrowser.serversModel.count > 0 ? qsTr("Found")+": "+radioBrowser.serversModel.count + " "+qsTr("servers") : qsTr("Searching for servers...")
BusyLabel {
text: radioBrowser.serversModel.count > 0 ? qsTr("Found")+": "+radioBrowser.serversModel.count + " "+qsTr("servers") : qsTr("Searching servers")
running: radioBrowser.serversModel.count < 1
anchors.horizontalCenter: parent.horizontalCenter
}
Label {
BusyLabel {
visible: radioBrowser.serversModel.count > 0
running: visible
text: qsTr("Connecting to:")
anchors.horizontalCenter: parent.horizontalCenter
}
Label {
visible: radioBrowser.serversModel.count > 0
text: radioBrowser.server
font.pixelSize: Theme.fontSizeSmall
color: Theme.highlightColor
anchors.horizontalCenter: parent.horizontalCenter
}
Button {
visible: radioBrowser.serversModel.count > 1
anchors.topMargin: Theme.paddingLarge
text: "Try another server"
onClicked: radioBrowser.getRandom()
anchors.horizontalCenter: parent.horizontalCenter
}
}