playback: avoid huge allocation on printing cmd
This commit is contained in:
parent
9685f3cf51
commit
e3e19fb0ac
1 changed files with 5 additions and 1 deletions
|
@ -94,7 +94,11 @@ constructor(
|
|||
override val parent: MusicParent?,
|
||||
override val queue: List<Song>,
|
||||
override val shuffled: Boolean
|
||||
) : PlaybackCommand
|
||||
) : PlaybackCommand {
|
||||
// Only show queue count to reduce memory use
|
||||
override fun toString() =
|
||||
"PlaybackCommand(song=$song, parent=$parent, queue=${queue.size} songs, shuffled=$shuffled)"
|
||||
}
|
||||
|
||||
override fun song(song: Song, shuffle: ShuffleMode) =
|
||||
newCommand(song, null, listOf(song), shuffle)
|
||||
|
|
Loading…
Reference in a new issue