Skip to content

Commit

Permalink
fix edit multiple selected music tracks issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Franck ALARY committed Feb 22, 2024
1 parent ff877e5 commit 82a150f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
3 changes: 1 addition & 2 deletions public/MainEvents/LocalMusic.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ function mainEventLocalMusicReader (mainWindow) {
fs.renameSync(srcImage, dstImage)
}

ipcMain.emit('local-musics-get')

localMusicUpdate(musics, images)
} else {

if (fs.existsSync(srcImage)) {
Expand Down
14 changes: 8 additions & 6 deletions src/App/Modules/Synchronize/Music/ModalMusicsFormUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,14 @@ function ModalMusicsFormUpdate ({musics, onValidate, onClose}) {
validation(
[albumRef, artistRef],
(values) => {
musics.map((music) => ({
...music,
album: values[0],
artist: values[1],
askNewImage: false
}))
onValidate(
musics.map((music) => ({
...music,
album: values[0],
artist: values[1],
askNewImage: false
}))
)
onClose()
}
)
Expand Down

0 comments on commit 82a150f

Please sign in to comment.