diff --git a/Shared/Settings/QualityProfileForm.swift b/Shared/Settings/QualityProfileForm.swift index 5806d7a1..ec2c1e62 100644 --- a/Shared/Settings/QualityProfileForm.swift +++ b/Shared/Settings/QualityProfileForm.swift @@ -227,7 +227,7 @@ struct QualityProfileForm: View { } func isFormatSelected(_ format: QualityProfile.Format) -> Bool { - (initialized ? formats : qualityProfile.formats).contains(format) + (initialized ? formats : (qualityProfile?.formats ?? [])).contains(format) } func toggleFormat(_ format: QualityProfile.Format, value: Bool) {