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 ( import (
"image/color" "image/color"
"log"
"supersonic/backend" "supersonic/backend"
"fyne.io/fyne/v2" "fyne.io/fyne/v2"
@@ -129,7 +128,6 @@ func (b *BrowsingPane) goHome() {
} }
func (b *BrowsingPane) GoBack() { func (b *BrowsingPane) GoBack() {
log.Printf("goBack called! historyIdx=%d, len=%d", b.historyIdx, len(b.history))
if b.historyIdx > 0 { if b.historyIdx > 0 {
b.addPageToHistory(b.curPage, false) b.addPageToHistory(b.curPage, false)
b.historyIdx -= 2 b.historyIdx -= 2
@@ -138,7 +136,6 @@ func (b *BrowsingPane) GoBack() {
} }
func (b *BrowsingPane) GoForward() { func (b *BrowsingPane) GoForward() {
log.Printf("goForward called! historyIdx=%d, len=%d", b.historyIdx, len(b.history))
if b.historyIdx < len(b.history)-1 { if b.historyIdx < len(b.history)-1 {
b.addPageToHistory(b.curPage, false) b.addPageToHistory(b.curPage, false)
b.doSetPage(b.history[b.historyIdx].Restore()) 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 { func NewAlbumGridFromState(state AlbumGridState) *AlbumGrid {
log.Printf("restoring album grid from state: %+v", state)
ag := &AlbumGrid{AlbumGridState: state} ag := &AlbumGrid{AlbumGridState: state}
ag.ExtendBaseWidget(ag) ag.ExtendBaseWidget(ag)
ag.createGridWrapList() ag.createGridWrapList()
ag.Refresh() ag.Refresh() // needed to initialize the widget
ag.grid.ScrollToOffset(state.scrollPos) ag.grid.ScrollToOffset(state.scrollPos)
return ag return ag
} }