Fix suffix checkbox to regenerate name from source instead of keeping existing value

This commit is contained in:
Stu Leak 2025-12-30 16:40:44 -05:00
parent 4f74d5b2b2
commit 4a58a22b81

View File

@ -6626,7 +6626,8 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject {
appendSuffixCheck := widget.NewCheck("Append \"-convert\" to filename", func(checked bool) {
state.convert.AppendSuffix = checked
// Recalculate and update the output base to reflect the suffix change
newBase := state.resolveOutputBase(src, !state.convert.UseAutoNaming)
// Always pass false for keepExisting to regenerate from source
newBase := state.resolveOutputBase(src, false)
updatingOutput = true
state.convert.OutputBase = newBase
outputEntry.SetText(newBase)