Fix issue with creating quality profile

This commit is contained in:
Arkadiusz Fal 2023-09-26 17:39:04 +02:00
parent 3e6ea2633e
commit 3be7a5a69f

View File

@ -227,7 +227,7 @@ struct QualityProfileForm: View {
} }
func isFormatSelected(_ format: QualityProfile.Format) -> Bool { 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) { func toggleFormat(_ format: QualityProfile.Format, value: Bool) {