Fix opening file stream label

This commit is contained in:
Arkadiusz Fal 2022-11-11 18:57:46 +01:00
parent 9be29f581b
commit 4cb9e24796

View File

@ -22,7 +22,15 @@ struct OpeningStream: View {
return "Opening audio stream...".localized() return "Opening audio stream...".localized()
} }
return String(format: "Opening %@ stream...".localized(), player.streamSelection?.shortQuality ?? "") if let selection = player.streamSelection {
if selection.isLocal {
return "Opening file..."
} else {
return String(format: "Opening %@ stream...".localized(), selection.shortQuality)
}
}
return ""
} }
var state: String? { var state: String? {