Hide CRF auto row unless manual selected
This commit is contained in:
parent
58886920a8
commit
48817dcee3
17
main.go
17
main.go
|
|
@ -8816,23 +8816,15 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if showCRF {
|
if showCRF && showManualCRF {
|
||||||
if manualCrfLabel != nil {
|
if manualCrfLabel != nil {
|
||||||
if showManualCRF {
|
manualCrfLabel.SetText("Manual CRF (overrides Quality preset)")
|
||||||
manualCrfLabel.SetText("Manual CRF (overrides Quality preset)")
|
|
||||||
} else {
|
|
||||||
manualCrfLabel.SetText("CRF (auto from Quality preset)")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if manualCrfRow != nil {
|
if manualCrfRow != nil {
|
||||||
manualCrfRow.Show()
|
manualCrfRow.Show()
|
||||||
}
|
}
|
||||||
if crfEntry != nil {
|
if crfEntry != nil {
|
||||||
if showManualCRF {
|
crfEntry.Enable()
|
||||||
crfEntry.Enable()
|
|
||||||
} else {
|
|
||||||
crfEntry.Disable()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if crfContainer != nil {
|
if crfContainer != nil {
|
||||||
crfContainer.Show()
|
crfContainer.Show()
|
||||||
|
|
@ -8841,6 +8833,9 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject {
|
||||||
if manualCrfRow != nil {
|
if manualCrfRow != nil {
|
||||||
manualCrfRow.Hide()
|
manualCrfRow.Hide()
|
||||||
}
|
}
|
||||||
|
if crfEntry != nil {
|
||||||
|
crfEntry.Disable()
|
||||||
|
}
|
||||||
if crfContainer != nil {
|
if crfContainer != nil {
|
||||||
crfContainer.Hide()
|
crfContainer.Hide()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user