remove debug prints

This commit is contained in:
Drew Weymouth
2023-01-09 21:14:03 -08:00
parent 78862f6bf0
commit df76cbb7b0
2 changed files with 1 additions and 5 deletions
-3
View File
@@ -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())
+1 -2
View File
@@ -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
}