From b169fc91b347acadb1b88c3cd24382bc25fb067f Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Fri, 19 Aug 2022 00:27:03 +0200 Subject: [PATCH] Fix setting quality profile resolution on edit --- Shared/Settings/QualityProfileForm.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Shared/Settings/QualityProfileForm.swift b/Shared/Settings/QualityProfileForm.swift index a8319c3a..3e675538 100644 --- a/Shared/Settings/QualityProfileForm.swift +++ b/Shared/Settings/QualityProfileForm.swift @@ -299,7 +299,9 @@ struct QualityProfileForm: View { } } - if let newResolution = availableResolutions.first { + if isResolutionDisabled(resolution), + let newResolution = availableResolutions.first + { resolution = newResolution } }