Update from NavidromePlayer.zip (2026-04-03 19:32)
This commit is contained in:
parent
51714946d8
commit
2ad70d3612
2 changed files with 14 additions and 12 deletions
|
|
@ -33,7 +33,7 @@ class AppDelegate: NSObject, UIApplicationDelegate {
|
|||
// MARK: - Smart DJ Background Refresh
|
||||
|
||||
private func handleSmartDJRefresh(task: BGAppRefreshTask) {
|
||||
scheduleSmartDJRefresh() // Schedule next
|
||||
Self.scheduleSmartDJRefresh() // Schedule next
|
||||
|
||||
let refreshTask = Task {
|
||||
do {
|
||||
|
|
|
|||
|
|
@ -97,11 +97,11 @@ struct WatchOnMyWristView: View {
|
|||
.font(.system(size: 9)).foregroundColor(.gray)
|
||||
}
|
||||
}
|
||||
.contextMenu {
|
||||
.swipeActions(edge: .trailing) {
|
||||
Button(role: .destructive) {
|
||||
for s in albumSongs { offlineStore.removeSong(s.id) }
|
||||
} label: {
|
||||
Label("Remove Album", systemImage: "trash")
|
||||
Label("Remove", systemImage: "trash")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -162,11 +162,11 @@ struct WatchOfflineSongRow: View {
|
|||
.font(.caption2).foregroundColor(.gray)
|
||||
}
|
||||
}
|
||||
.contextMenu {
|
||||
.swipeActions(edge: .trailing) {
|
||||
Button(role: .destructive) {
|
||||
offlineStore.removeSong(offline.id)
|
||||
} label: {
|
||||
Label("Remove from Watch", systemImage: "xmark.bin")
|
||||
Label("Remove", systemImage: "trash")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -274,10 +274,11 @@ struct WatchAlbumsView: View {
|
|||
}
|
||||
}
|
||||
}
|
||||
.contextMenu {
|
||||
.swipeActions(edge: .trailing) {
|
||||
Button(action: { downloadAlbum(album) }) {
|
||||
Label("Download", systemImage: "arrow.down.circle")
|
||||
}
|
||||
.tint(.blue)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -385,24 +386,25 @@ struct WatchServerSongRow: View {
|
|||
Text(song.durationFormatted).font(.caption2).foregroundColor(.gray)
|
||||
}
|
||||
}
|
||||
.contextMenu {
|
||||
.swipeActions(edge: .trailing) {
|
||||
if offlineStore.isSongAvailable(song.id) {
|
||||
Button(role: .destructive) {
|
||||
offlineStore.removeSong(song.id)
|
||||
} label: {
|
||||
Label("Remove from Watch", systemImage: "xmark.bin")
|
||||
Label("Remove", systemImage: "trash")
|
||||
}
|
||||
} else {
|
||||
Button(action: { offlineStore.downloadFromServer(song: song) }) {
|
||||
Label("Download", systemImage: "arrow.down.circle")
|
||||
}
|
||||
.tint(.blue)
|
||||
}
|
||||
}
|
||||
.swipeActions(edge: .leading) {
|
||||
Button(action: { audioPlayer.playNext(song) }) {
|
||||
Label("Play Next", systemImage: "text.line.first.and.arrowtriangle.forward")
|
||||
}
|
||||
Button(action: { audioPlayer.playLater(song) }) {
|
||||
Label("Play Later", systemImage: "text.line.last.and.arrowtriangle.forward")
|
||||
Label("Next", systemImage: "text.line.first.and.arrowtriangle.forward")
|
||||
}
|
||||
.tint(.orange)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue