Prev and next only when playing favorites

This commit is contained in:
2025-06-04 18:47:17 +02:00
parent 1cf3224545
commit ce873bde7b
3 changed files with 11 additions and 7 deletions
+4 -2
View File
@@ -202,7 +202,8 @@ Page {
spacing: Theme.paddingMedium
Image {
id: playprev
enabled: radioPlayer.playlistIndex > 0
enabled: radioPlayer.playlistIndex > 0 && radioPlayer._favorite
visible: radioPlayer._favorite
opacity: enabled ? 1.0 : 0.4
source: "image://theme/icon-m-previous"
height: play.height
@@ -228,7 +229,8 @@ Page {
}
Image {
id: playDLNA
enabled: radioPlayer.playlistIndex < radioPlayer.playlist.count -1
enabled: radioPlayer.playlistIndex < radioPlayer.playlist.count -1 && radioPlayer._favorite
visible: radioPlayer._favorite
opacity: enabled ? 1.0 : 0.4
source: "image://theme/icon-m-next"
height: play.height