From 4f74d5b2b2ecc5909848cb78ef3802b604c6fc2e Mon Sep 17 00:00:00 2001 From: Stu Leak Date: Tue, 30 Dec 2025 16:20:20 -0500 Subject: [PATCH] Fix output name field not updating when toggling suffix checkbox --- main.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index aa8caac..6de38c5 100644 --- a/main.go +++ b/main.go @@ -6625,9 +6625,12 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject { appendSuffixCheck := widget.NewCheck("Append \"-convert\" to filename", func(checked bool) { state.convert.AppendSuffix = checked - if !state.convert.UseAutoNaming { - applyAutoName(false) - } + // Recalculate and update the output base to reflect the suffix change + newBase := state.resolveOutputBase(src, !state.convert.UseAutoNaming) + updatingOutput = true + state.convert.OutputBase = newBase + outputEntry.SetText(newBase) + updatingOutput = false // Update output hint to show the change immediately if outputHint != nil { outputHint.SetText(fmt.Sprintf("Output file: %s", state.convert.OutputFile()))