From 4cb9e24796188b009d9b73cd03bc527d7072528a Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Fri, 11 Nov 2022 18:57:46 +0100 Subject: [PATCH] Fix opening file stream label --- Shared/Player/Controls/OSD/OpeningStream.swift | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Shared/Player/Controls/OSD/OpeningStream.swift b/Shared/Player/Controls/OSD/OpeningStream.swift index b9da4dbf..67ad465f 100644 --- a/Shared/Player/Controls/OSD/OpeningStream.swift +++ b/Shared/Player/Controls/OSD/OpeningStream.swift @@ -22,7 +22,15 @@ struct OpeningStream: View { 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? {