From 40d2a57f748b477500c1913d501894bfd610c6a1 Mon Sep 17 00:00:00 2001 From: Stu Leak Date: Wed, 7 Jan 2026 02:12:07 -0500 Subject: [PATCH] Fix command preview drawer declaration --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 4c01252..3988f8c 100644 --- a/main.go +++ b/main.go @@ -7307,6 +7307,9 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject { }) } + // Forward declare drawer-backed preview builder. + var buildCommandPreview func() fyne.CanvasObject + // Command Preview toggle button (drawer) cmdPreviewBtn := widget.NewButton("Command Preview…", func() { if src == nil { @@ -7361,7 +7364,6 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject { // Forward declare functions needed by formatContainer callback var updateDVDOptions func() - var buildCommandPreview func() fyne.CanvasObject var updateChapterWarning func() var updateQualityOptions func() var updateQualityVisibility func()