From a798427d5b766d9db3102c6b47db4e4e956bc3d2 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Fri, 27 Jan 2023 16:25:53 -0600 Subject: [PATCH] bug in appending songs fixed --- src/qml/presenter/ServiceList.qml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/qml/presenter/ServiceList.qml b/src/qml/presenter/ServiceList.qml index aad91d0..5a1f824 100644 --- a/src/qml/presenter/ServiceList.qml +++ b/src/qml/presenter/ServiceList.qml @@ -18,7 +18,7 @@ Item { property var hlItem Rectangle { - id: background + id: bg color: Kirigami.Theme.backgroundColor anchors.fill: parent } @@ -26,7 +26,7 @@ Item { FastBlur { id: backgroundBlur source: ShaderEffectSource { - sourceItem: background + sourceItem: bg sourceRect: Qt.rect(0, 0, backgroundBlur.width, backgroundBlur.height) } anchors.fill: parent @@ -572,15 +572,14 @@ Item { function appendItem(name, type, background, backgroundType, text, audio, font, fontSize, itemID) { console.log("adding: " + name + " of type " + type); - let lyrics; if (type === "song") { console.log("THIS IS A SONG!!!!!"); console.log(itemID); - lyrics = songsqlmodel.getLyricList(itemID); + let lyrics = songsqlmodel.getLyricList(itemID); console.log(lyrics); ServiceItemModel.addItem(name, type, background, backgroundType, lyrics, - audio, font, fontSize, lyrics.length()); + audio, font, fontSize, lyrics.length); /* totalServiceItems++; */ return; };