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:
parent
1117d6eea2
commit
564aec2bda
1 changed files with 3 additions and 1 deletions
|
@ -512,7 +512,7 @@ Item {
|
||||||
songEditorModel.fontSize = updatedSong.fontSize;
|
songEditorModel.fontSize = updatedSong.fontSize;
|
||||||
songEditorModel.checkVerseOrder();
|
songEditorModel.checkVerseOrder();
|
||||||
songEditorModel.checkFiles();
|
songEditorModel.checkFiles();
|
||||||
songID = index;
|
songID = updatedSong.id;
|
||||||
|
|
||||||
changeSlideHAlignment(song.horizontalTextAlignment);
|
changeSlideHAlignment(song.horizontalTextAlignment);
|
||||||
changeSlideVAlignment(song.verticalTextAlignment);
|
changeSlideVAlignment(song.verticalTextAlignment);
|
||||||
|
@ -563,6 +563,8 @@ Item {
|
||||||
|
|
||||||
function updateAudioFile() {
|
function updateAudioFile() {
|
||||||
const file = fileHelper.loadFile("Pick Audio", "audio");
|
const file = fileHelper.loadFile("Pick Audio", "audio");
|
||||||
|
Utils.dbg("song: " + songID);
|
||||||
|
Utils.dbg("song-title: " + songEditorModel.title)
|
||||||
songEditorModel.audio = file;
|
songEditorModel.audio = file;
|
||||||
songProxyModel.songModel.updateAudio(songID, file);
|
songProxyModel.songModel.updateAudio(songID, file);
|
||||||
songEditorModel.checkFiles();
|
songEditorModel.checkFiles();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue