From 7b8d4b387ab915c502c3e91e70c4c67f5ce35358 Mon Sep 17 00:00:00 2001 From: Stu Leak Date: Sun, 4 Jan 2026 07:52:04 -0500 Subject: [PATCH] Fix convert update callbacks scope --- main.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/main.go b/main.go index a0f8a26..b04cc8c 100644 --- a/main.go +++ b/main.go @@ -7022,6 +7022,10 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject { var updateDVDOptions func() var buildCommandPreview func() var updateChapterWarning func() + var updateQualityOptions func() + var updateQualityVisibility func() + var updateRemuxVisibility func() + var updateEncodingControls func() // Declare output widgets early to fix variable order issues var outputExtLabel *widget.Label @@ -7172,12 +7176,7 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject { audioEncodingSection *fyne.Container audioCodecSelect *ui.ColoredSelect ) - var ( - updateEncodingControls func() - updateQualityVisibility func() - updateRemuxVisibility func() - updateQualityOptions func() // Update quality dropdown based on codec - ) + // updateQualityOptions: Update quality dropdown based on codec // Base quality options (without lossless or manual) baseQualityOptions := []string{