From 63bce68007e0fef941b7fe00e2481e480da03f77 Mon Sep 17 00:00:00 2001 From: Stu Leak Date: Sat, 3 Jan 2026 23:47:11 -0500 Subject: [PATCH] Tighten thumbnail columns and queue refresh --- main.go | 8 +++----- thumb_module.go | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/main.go b/main.go index a9707d6..715591d 100644 --- a/main.go +++ b/main.go @@ -1830,7 +1830,7 @@ func (s *appState) clearCompletedJobs() { func (s *appState) refreshQueueView() { if s.active == "queue" { now := time.Now() - if !s.queueLastRefresh.IsZero() && now.Sub(s.queueLastRefresh) < 500*time.Millisecond { + if !s.queueLastRefresh.IsZero() && now.Sub(s.queueLastRefresh) < 200*time.Millisecond { return } s.queueLastRefresh = now @@ -2027,10 +2027,8 @@ func (s *appState) startQueueAutoRefresh() { s.queueAutoRefreshStop = stop s.queueAutoRefreshRunning = true go func() { - // Use 2-second interval to reduce UI jankiness from frequent rebuilds - // Slower refresh = smoother experience, especially with scroll position preservation - // The refreshQueueView method has its own 500ms throttle for other triggers - ticker := time.NewTicker(2000 * time.Millisecond) + // Short interval keeps elapsed/progress responsive with incremental UI updates. + ticker := time.NewTicker(500 * time.Millisecond) defer ticker.Stop() for { select { diff --git a/thumb_module.go b/thumb_module.go index 835f1d0..2085eb9 100644 --- a/thumb_module.go +++ b/thumb_module.go @@ -148,7 +148,7 @@ func buildThumbView(state *appState) fyne.CanvasObject { totalLabel.TextStyle = fyne.TextStyle{Italic: true} totalLabel.Wrapping = fyne.TextWrapWord - colSlider := widget.NewSlider(2, 12) + colSlider := widget.NewSlider(2, 9) colSlider.Value = float64(state.thumbColumns) colSlider.Step = 1 colSlider.OnChanged = func(val float64) {