From 3be7a5a69f30eb618021d4608195645d9af3d1f7 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Tue, 26 Sep 2023 17:39:04 +0200 Subject: [PATCH] Fix issue with creating quality profile --- Shared/Settings/QualityProfileForm.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {