mirror of
https://github.com/yattee/yattee.git
synced 2025-04-28 16:00:33 +05:30
Fix quality profile form
This commit is contained in:
parent
dd0a966a9f
commit
9a257ec897
@ -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 || qualityProfile.isNil ? formats : qualityProfile.formats).contains(format)
|
||||||
}
|
}
|
||||||
|
|
||||||
func toggleFormat(_ format: QualityProfile.Format, value: Bool) {
|
func toggleFormat(_ format: QualityProfile.Format, value: Bool) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user