switching to right model

This commit is contained in:
Chris Cochrun 2023-02-23 14:55:31 -06:00
parent 3d5e131ad5
commit 571d74306d

View file

@ -543,7 +543,7 @@ Item {
background, backgroundType, text, audio, background, backgroundType, text, audio,
font, fontSize, itemID) { font, fontSize, itemID) {
if (type === "song") { if (type === "song") {
const newtext = songsqlmodel.getLyricList(itemID); const newtext = songProxyModel.songModel.getLyricList(itemID);
console.log("adding: " + name + " of type " + type + " with " + newtext.length + " slides"); console.log("adding: " + name + " of type " + type + " with " + newtext.length + " slides");
ServiceItemModel.insertItem(index, name, ServiceItemModel.insertItem(index, name,
type, background, type, background,
@ -574,7 +574,7 @@ Item {
console.log("adding: " + name + " of type " + type); console.log("adding: " + name + " of type " + type);
if (type === "song") { if (type === "song") {
console.log("THIS IS A SONG!!!!!"); console.log("THIS IS A SONG!!!!!");
let lyrics = songsqlmodel.getLyricList(itemID); let lyrics = songProxyModel.songModel.getLyricList(itemID);
console.log(lyrics); console.log(lyrics);
ServiceItemModel.addItem(name, type, background, ServiceItemModel.addItem(name, type, background,
backgroundType, lyrics, backgroundType, lyrics,