fix updating properties from the SongEditor.qml

Since we get the original songID from the proxy model, it somehow
differs from the song_model.rs id. So, in the future, I should figure
out how to get the original id and use that so that these sorts of
bugs aren't quite as hard to find
This commit is contained in:
Chris Cochrun 2024-04-03 06:37:31 -05:00
parent 1117d6eea2
commit 564aec2bda

View file

@ -512,7 +512,7 @@ Item {
songEditorModel.fontSize = updatedSong.fontSize;
songEditorModel.checkVerseOrder();
songEditorModel.checkFiles();
songID = index;
songID = updatedSong.id;
changeSlideHAlignment(song.horizontalTextAlignment);
changeSlideVAlignment(song.verticalTextAlignment);
@ -563,6 +563,8 @@ Item {
function updateAudioFile() {
const file = fileHelper.loadFile("Pick Audio", "audio");
Utils.dbg("song: " + songID);
Utils.dbg("song-title: " + songEditorModel.title)
songEditorModel.audio = file;
songProxyModel.songModel.updateAudio(songID, file);
songEditorModel.checkFiles();