Fix quality profile form

This commit is contained in:
Arkadiusz Fal 2023-09-26 18:19:09 +02:00
parent dd0a966a9f
commit 9a257ec897

View File

@ -227,7 +227,7 @@ struct QualityProfileForm: View {
}
func isFormatSelected(_ format: QualityProfile.Format) -> Bool {
(initialized ? formats : (qualityProfile?.formats ?? [])).contains(format)
(initialized || qualityProfile.isNil ? formats : qualityProfile.formats).contains(format)
}
func toggleFormat(_ format: QualityProfile.Format, value: Bool) {