refactor play count update to be cleaner, code-wise
This commit is contained in:
+1
-1
@@ -84,7 +84,7 @@ func (bp *BottomPanel) SetPlaybackManager(pm *backend.PlaybackManager) {
|
||||
})
|
||||
}
|
||||
|
||||
func (bp *BottomPanel) onSongChange(song *subsonic.Child, _ *subsonic.Child) {
|
||||
func (bp *BottomPanel) onSongChange(song *subsonic.Child) {
|
||||
if song == nil {
|
||||
bp.NowPlaying.Update("", "", "", nil)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user