Lock remux aspect controls to Source

This commit is contained in:
Stu Leak 2025-12-24 02:31:34 -05:00
parent 0779016616
commit fe5d0f7f87

25
main.go
View File

@ -7559,6 +7559,31 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject {
audioCodecSelect.Enable()
}
}
if remux {
state.convert.AspectUserSet = false
if syncAspect != nil {
syncAspect("Source", false)
}
if targetAspectSelectSimple != nil {
targetAspectSelectSimple.Disable()
}
if targetAspectSelect != nil {
targetAspectSelect.Disable()
}
aspectOptions.Disable()
aspectBox.Hide()
} else {
if targetAspectSelectSimple != nil {
targetAspectSelectSimple.Enable()
}
if targetAspectSelect != nil {
targetAspectSelect.Enable()
}
aspectOptions.Enable()
if updateAspectBoxVisibility != nil {
updateAspectBoxVisibility()
}
}
}
simpleEncodingSection = container.NewVBox(