This commit is contained in:
natilou
2024-05-18 16:07:50 -03:00
parent d939c7f85f
commit 090874591a
3 changed files with 21 additions and 22 deletions
+2 -2
View File
@@ -11,8 +11,8 @@ import (
"net/url" "net/url"
"os" "os"
"path/filepath" "path/filepath"
"time"
"slices" "slices"
"time"
"github.com/dweymouth/supersonic/backend" "github.com/dweymouth/supersonic/backend"
"github.com/dweymouth/supersonic/backend/mediaprovider" "github.com/dweymouth/supersonic/backend/mediaprovider"
@@ -347,7 +347,7 @@ func (m *Controller) DoAddTracksToPlaylistWorkflow(trackIDs []string) {
} else { } else {
var trackIDsInPaylist []string var trackIDsInPaylist []string
for _, track := range selectedPlaylist.Tracks{ for _, track := range selectedPlaylist.Tracks {
trackIDsInPaylist = append(trackIDsInPaylist, track.ID) trackIDsInPaylist = append(trackIDsInPaylist, track.ID)
} }
filterTrackIDs = sharedutil.FilterSlice(trackIDs, func(trackID string) bool { filterTrackIDs = sharedutil.FilterSlice(trackIDs, func(trackID string) bool {
+1 -2
View File
@@ -142,7 +142,7 @@ func (sd *SearchDialog) setResults(results []*mediaprovider.SearchResult) {
func (sd *SearchDialog) SetContent(checkBox *widget.Check) { func (sd *SearchDialog) SetContent(checkBox *widget.Check) {
dismissBtn := widget.NewButton("Close", sd.onDismiss) dismissBtn := widget.NewButton("Close", sd.onDismiss)
title := widget.NewRichText(&widget.TextSegment{Text:sd.placeholderTitle, Style: util.BoldRichTextStyle}) title := widget.NewRichText(&widget.TextSegment{Text: sd.placeholderTitle, Style: util.BoldRichTextStyle})
title.Segments[0].(*widget.TextSegment).Style.Alignment = fyne.TextAlignCenter title.Segments[0].(*widget.TextSegment).Style.Alignment = fyne.TextAlignCenter
se := sd.SearchEntry.(fyne.CanvasObject) se := sd.SearchEntry.(fyne.CanvasObject)
if checkBox != nil { if checkBox != nil {
@@ -164,7 +164,6 @@ func (sd *SearchDialog) SetContent(checkBox *widget.Check) {
} }
} }
func (sd *SearchDialog) onInit() { func (sd *SearchDialog) onInit() {
if sd.OnInit == nil { if sd.OnInit == nil {
sd.SetContent(nil) sd.SetContent(nil)