Hide CRF auto row unless manual selected

This commit is contained in:
Stu Leak 2026-01-06 21:59:38 -05:00
parent 0af9d7790e
commit 4a4eee1be5

17
main.go
View File

@ -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()
}