From 4a4eee1be52d9f82c3b15303ff9e51a98133a200 Mon Sep 17 00:00:00 2001 From: Stu Leak Date: Tue, 6 Jan 2026 21:59:38 -0500 Subject: [PATCH] Hide CRF auto row unless manual selected --- main.go | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) 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() }