diff --git a/main.go b/main.go index 87ddc12..a93cf73 100644 --- a/main.go +++ b/main.go @@ -8816,23 +8816,15 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject { } } - if showCRF { + if showCRF && showManualCRF { if manualCrfLabel != nil { - if showManualCRF { - manualCrfLabel.SetText("Manual CRF (overrides Quality preset)") - } else { - manualCrfLabel.SetText("CRF (auto from Quality preset)") - } + manualCrfLabel.SetText("Manual CRF (overrides Quality preset)") } if manualCrfRow != nil { manualCrfRow.Show() } if crfEntry != nil { - if showManualCRF { - crfEntry.Enable() - } else { - crfEntry.Disable() - } + crfEntry.Enable() } if crfContainer != nil { crfContainer.Show() @@ -8841,6 +8833,9 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject { if manualCrfRow != nil { manualCrfRow.Hide() } + if crfEntry != nil { + crfEntry.Disable() + } if crfContainer != nil { crfContainer.Hide() }