|
|
@@ -789,10 +789,10 @@ struct AddSongsToPlaylistDialogContent {
|
|
|
|
|
|
// 选择框
|
|
|
Checkbox({ name: 'song_' + song.id })
|
|
|
- .select(this.selectedSongIds.has(song.id))
|
|
|
+ .select(this.selectedSongs.some(x => x.filePath == song.filePath))
|
|
|
.selectedColor($r('app.color.theme_color'))
|
|
|
.shape(CheckBoxShape.ROUNDED_SQUARE)
|
|
|
- .onChange(() => {
|
|
|
+ .onClick(() => {
|
|
|
this.toggleSongSelection(song)
|
|
|
})
|
|
|
}
|