From 152b4d585f3c2a8f3082d74fcf85a0182501e97f Mon Sep 17 00:00:00 2001 From: cranci1 <100066266+cranci1@users.noreply.github.com> Date: Sat, 15 Feb 2025 17:25:45 +0100 Subject: [PATCH] ok this works my bad --- Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift b/Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift index d9d374d..9b753c2 100644 --- a/Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift +++ b/Sora/Utils/MediaPlayer/CustomPlayer/CustomPlayer.swift @@ -241,7 +241,7 @@ struct CustomMediaPlayer: View { .foregroundColor(.white) .font(.headline) } - if !subtitlesURL?.isEmpty { + if let url = subtitlesURL, !url.isEmpty { Menu { Menu("Subtitle Foreground Color") { Button("White") { subtitleForegroundColor = "white" }