HotFix: Missing Media Control

This commit is contained in:
Hariharan Mudaliar 2025-12-27 22:17:04 +05:30
commit 8809c85957
No known key found for this signature in database
GPG key ID: 025583EB0BE5640E
4 changed files with 8 additions and 2 deletions

View file

@ -2363,6 +2363,9 @@
} }
} }
} }
},
"Adds the AirPlay/route picker button back to the customizable controls palette." : {
}, },
"Adjust settings above to see changes in real-time. The actual OSD appears at the bottom center of your screen." : { "Adjust settings above to see changes in real-time. The actual OSD appears at the bottom center of your screen." : {
"comment" : "A footer in the \"Preview\" section of the Custom OSD settings, explaining how to use the live preview feature.", "comment" : "A footer in the \"Preview\" section of the Custom OSD settings, explaining how to use the live preview feature.",

View file

@ -1923,6 +1923,9 @@ struct Media: View {
} }
} }
if showShuffleAndRepeat { if showShuffleAndRepeat {
Defaults.Toggle("Show \"Change Media Output\" control", key: .showMediaOutputControl)
.settingsHighlight(id: highlightID("Show Change Media Output control"))
.help("Adds the AirPlay/route picker button back to the customizable controls palette.")
MusicSlotConfigurationView() MusicSlotConfigurationView()
} else { } else {
Text("Turn on customizable controls to rearrange media buttons.") Text("Turn on customizable controls to rearrange media buttons.")

View file

@ -530,7 +530,7 @@ extension Defaults.Keys {
static let enableParallaxEffect = Key<Bool>("enableParallaxEffect", default: true) static let enableParallaxEffect = Key<Bool>("enableParallaxEffect", default: true)
static let waitInterval = Key<Double>("waitInterval", default: 3) static let waitInterval = Key<Double>("waitInterval", default: 3)
static let showShuffleAndRepeat = Key<Bool>("showShuffleAndRepeat", default: true) static let showShuffleAndRepeat = Key<Bool>("showShuffleAndRepeat", default: true)
static let showMediaOutputControl = Key<Bool>("showMediaOutputControl", default: false) static let showMediaOutputControl = Key<Bool>("showMediaOutputControl", default: true)
static let musicAuxLeftControl = Key<MusicAuxiliaryControl>("musicAuxLeftControl", default: .shuffle) static let musicAuxLeftControl = Key<MusicAuxiliaryControl>("musicAuxLeftControl", default: .shuffle)
static let musicAuxRightControl = Key<MusicAuxiliaryControl>("musicAuxRightControl", default: .repeatMode) static let musicAuxRightControl = Key<MusicAuxiliaryControl>("musicAuxRightControl", default: .repeatMode)
static let didMigrateMusicAuxControls = Key<Bool>("didMigrateMusicAuxControls", default: false) static let didMigrateMusicAuxControls = Key<Bool>("didMigrateMusicAuxControls", default: false)

View file

@ -57,7 +57,7 @@ enum MusicControlButton: String, CaseIterable, Identifiable, Codable, Defaults.S
case .repeatMode: case .repeatMode:
return "Repeat" return "Repeat"
case .mediaOutput: case .mediaOutput:
return "Media Output" return "Change Media Output"
case .lyrics: case .lyrics:
return "Lyrics" return "Lyrics"
case .seekBackward: case .seekBackward: