diff --git a/ui/browsing/browsingpane.go b/ui/browsing/browsingpane.go index 40ed925..f2e1682 100644 --- a/ui/browsing/browsingpane.go +++ b/ui/browsing/browsingpane.go @@ -2,7 +2,6 @@ package browsing import ( "image/color" - "log" "supersonic/backend" "fyne.io/fyne/v2" @@ -129,7 +128,6 @@ func (b *BrowsingPane) goHome() { } func (b *BrowsingPane) GoBack() { - log.Printf("goBack called! historyIdx=%d, len=%d", b.historyIdx, len(b.history)) if b.historyIdx > 0 { b.addPageToHistory(b.curPage, false) b.historyIdx -= 2 @@ -138,7 +136,6 @@ func (b *BrowsingPane) GoBack() { } func (b *BrowsingPane) GoForward() { - log.Printf("goForward called! historyIdx=%d, len=%d", b.historyIdx, len(b.history)) if b.historyIdx < len(b.history)-1 { b.addPageToHistory(b.curPage, false) b.doSetPage(b.history[b.historyIdx].Restore()) diff --git a/ui/widgets/albumgrid.go b/ui/widgets/albumgrid.go index 2febaa5..64ecd0e 100644 --- a/ui/widgets/albumgrid.go +++ b/ui/widgets/albumgrid.go @@ -81,11 +81,10 @@ func (ag *AlbumGrid) SaveToState() AlbumGridState { } func NewAlbumGridFromState(state AlbumGridState) *AlbumGrid { - log.Printf("restoring album grid from state: %+v", state) ag := &AlbumGrid{AlbumGridState: state} ag.ExtendBaseWidget(ag) ag.createGridWrapList() - ag.Refresh() + ag.Refresh() // needed to initialize the widget ag.grid.ScrollToOffset(state.scrollPos) return ag }