add select all shortcut to album and playlist pages
This commit is contained in:
@@ -31,6 +31,10 @@ type Searchable interface {
|
||||
SearchWidget() fyne.Focusable
|
||||
}
|
||||
|
||||
type CanSelectAll interface {
|
||||
SelectAll()
|
||||
}
|
||||
|
||||
type CanShowNowPlaying interface {
|
||||
OnSongChange(song *subsonic.Child)
|
||||
}
|
||||
@@ -89,6 +93,12 @@ func (b *BrowsingPane) GetSearchBarIfAny() fyne.Focusable {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (b *BrowsingPane) SelectAll() {
|
||||
if s, ok := b.curPage.(CanSelectAll); ok {
|
||||
s.SelectAll()
|
||||
}
|
||||
}
|
||||
|
||||
func (b *BrowsingPane) doSetPage(p Page) bool {
|
||||
if b.curPage != nil && b.curPage.Route() == p.Route() {
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user