bug in appending songs fixed

This commit is contained in:
Chris Cochrun 2023-01-27 16:25:53 -06:00
parent 1b0f638df1
commit a798427d5b

View file

@ -18,7 +18,7 @@ Item {
property var hlItem property var hlItem
Rectangle { Rectangle {
id: background id: bg
color: Kirigami.Theme.backgroundColor color: Kirigami.Theme.backgroundColor
anchors.fill: parent anchors.fill: parent
} }
@ -26,7 +26,7 @@ Item {
FastBlur { FastBlur {
id: backgroundBlur id: backgroundBlur
source: ShaderEffectSource { source: ShaderEffectSource {
sourceItem: background sourceItem: bg
sourceRect: Qt.rect(0, 0, backgroundBlur.width, backgroundBlur.height) sourceRect: Qt.rect(0, 0, backgroundBlur.width, backgroundBlur.height)
} }
anchors.fill: parent anchors.fill: parent
@ -572,15 +572,14 @@ Item {
function appendItem(name, type, background, backgroundType, function appendItem(name, type, background, backgroundType,
text, audio, font, fontSize, itemID) { text, audio, font, fontSize, itemID) {
console.log("adding: " + name + " of type " + type); console.log("adding: " + name + " of type " + type);
let lyrics;
if (type === "song") { if (type === "song") {
console.log("THIS IS A SONG!!!!!"); console.log("THIS IS A SONG!!!!!");
console.log(itemID); console.log(itemID);
lyrics = songsqlmodel.getLyricList(itemID); let lyrics = songsqlmodel.getLyricList(itemID);
console.log(lyrics); console.log(lyrics);
ServiceItemModel.addItem(name, type, background, ServiceItemModel.addItem(name, type, background,
backgroundType, lyrics, backgroundType, lyrics,
audio, font, fontSize, lyrics.length()); audio, font, fontSize, lyrics.length);
/* totalServiceItems++; */ /* totalServiceItems++; */
return; return;
}; };