From 3b918d0ed563505b55849199af6cadf4bbb1f2c7 Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Sat, 27 Jul 2024 17:03:46 -0700 Subject: [PATCH] fix pop up play queue scroll to now playing --- ui/controller/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/controller/controller.go b/ui/controller/controller.go index 1da6506..ac75c1b 100644 --- a/ui/controller/controller.go +++ b/ui/controller/controller.go @@ -147,7 +147,6 @@ func (m *Controller) ShowPopUpPlayQueue() { } popUpQueue.SetNowPlaying(npID) popUpQueue.UnselectAll() - popUpQueue.ScrollToNowPlaying() title := widget.NewRichTextWithText(lang.L("Play Queue")) title.Segments[0].(*widget.TextSegment).Style.Alignment = fyne.TextAlignCenter @@ -172,6 +171,7 @@ func (m *Controller) ShowPopUpPlayQueue() { fyne.NewSize(canvasSize.Width*0.4, canvasSize.Height*0.5), )) pop.Resize(size) + popUpQueue.ScrollToNowPlaying() // must come after resize pop.ShowAtPosition(fyne.NewPos( canvasSize.Width-size.Width-10, canvasSize.Height-size.Height-100,