bug: extra text added in new videos and imgs
This commit is contained in:
parent
eb8d98b924
commit
3461bfdf98
1 changed files with 17 additions and 4 deletions
|
@ -403,28 +403,41 @@ ColumnLayout {
|
|||
|
||||
function addItem(index, name, type,
|
||||
background, backgroundType, text, itemID) {
|
||||
if (type === "song") {
|
||||
const newtext = songsqlmodel.getLyricList(itemID);
|
||||
print("adding: " + name + " of type " + type);
|
||||
serviceItemModel.insertItem(index, name,
|
||||
type, background,
|
||||
backgroundType, newtext);
|
||||
totalServiceItems++;
|
||||
return;
|
||||
}
|
||||
print("adding: " + name + " of type " + type);
|
||||
serviceItemModel.insertItem(index, name,
|
||||
type, background,
|
||||
backgroundType);
|
||||
totalServiceItems++;
|
||||
}
|
||||
|
||||
function appendItem(name, type, background, backgroundType, text, itemID) {
|
||||
print("adding: " + name + " of type " + type);
|
||||
let lyrics;
|
||||
if (type === "song") {
|
||||
print("THIS IS A SONG!!!!!");
|
||||
print(itemID);
|
||||
lyrics = songsqlmodel.getLyricList(itemID);
|
||||
print(lyrics);
|
||||
}
|
||||
serviceItemModel.addItem(name, type, background,
|
||||
backgroundType, lyrics);
|
||||
totalServiceItems++;
|
||||
return;
|
||||
};
|
||||
|
||||
print(background);
|
||||
print(backgroundType);
|
||||
|
||||
serviceItemModel.addItem(name, type, background,
|
||||
backgroundType, lyrics);
|
||||
backgroundType);
|
||||
totalServiceItems++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue