Merge pull request #621 from psyomn/psyomn/add-golangci-lint-and-unused-lint

Add golangci lint and unused lint
This commit is contained in:
Drew Weymouth
2025-05-18 13:41:58 -07:00
committed by GitHub
7 changed files with 79 additions and 17 deletions
-5
View File
@@ -506,11 +506,6 @@ func (a *NowPlayingPage) Refresh() {
a.BaseWidget.Refresh()
}
func (a *NowPlayingPage) doSetNewTrackOrder(idxs []int, insertPos int) {
newTracks := sharedutil.ReorderItems(a.queue, idxs, insertPos)
a.pm.UpdatePlayQueue(newTracks)
}
func (a *NowPlayingPage) saveSelectedTab(tabNum int) {
var tabName string
switch tabNum {
-5
View File
@@ -9,16 +9,11 @@ import (
myTheme "github.com/dweymouth/supersonic/ui/theme"
)
const (
imagePopUpLowRezDim = 128
)
type ImagePopUp struct {
widget.PopUp
img image.Image
desiredSize fyne.Size
aspect float64
}
func NewImagePopUp(img image.Image, canv fyne.Canvas, size fyne.Size) *ImagePopUp {