Fix snippet toggle button scope

This commit is contained in:
Stu Leak 2025-12-20 16:29:47 -05:00
parent a7b92cfa8e
commit e39b6a7f99
3 changed files with 4 additions and 1 deletions

View File

@ -832,6 +832,7 @@ This file tracks completed features, fixes, and milestones.
- ✅ Linked simple and advanced bitrate presets so they stay in sync
- ✅ Hide quality presets when bitrate mode is not CRF
- ✅ Collapsed snippet tools behind a toggle in the convert footer
- ✅ Fixed snippet toggle button scope to avoid build error
- ✅ Stabilized video seeking and embedded rendering
- ✅ Improved player window positioning
- ✅ Fixed clear video functionality

View File

@ -65,6 +65,7 @@ This file tracks upcoming features, improvements, and known issues.
- Simple/advanced bitrate presets synced
- Quality presets hidden when bitrate mode is not CRF
- Snippet tools collapsed behind a toggle to reduce footer clutter
- Snippet toggle scope fixed to eliminate build error
*Last Updated: 2025-12-20*

View File

@ -7238,7 +7238,8 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject {
snippetTools := container.NewVBox(snippetConfigRow, snippetRow)
snippetTools.Hide()
snippetToolsVisible := false
snippetToggleBtn := widget.NewButton("Show Snippet Tools", func() {
var snippetToggleBtn *widget.Button
snippetToggleBtn = widget.NewButton("Show Snippet Tools", func() {
if snippetToolsVisible {
snippetTools.Hide()
snippetToggleBtn.SetText("Show Snippet Tools")