Fix history dialog crash for in-progress jobs

This commit is contained in:
Stu Leak 2026-01-10 05:11:34 -05:00
parent be76b0eaa1
commit 8bad3d30c1

View File

@ -1412,11 +1412,15 @@ Config:
}
// Layout: details at top (scrollable), FFmpeg at bottom (fixed)
bottomItems := []fyne.CanvasObject{}
if ffmpegSection != nil {
bottomItems = append(bottomItems, ffmpegSection)
}
bottomItems = append(bottomItems, container.NewHBox(buttons...))
content := container.NewBorder(
detailsScroll, // Top: job details (scrollable, takes priority)
container.NewVBox( // Bottom: FFmpeg command (fixed)
ffmpegSection,
container.NewHBox(buttons...),
bottomItems...,
),
nil, nil,
nil, // No center content - top and bottom fill the space