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,
|
function addItem(index, name, type,
|
||||||
background, backgroundType, text, itemID) {
|
background, backgroundType, text, itemID) {
|
||||||
|
if (type === "song") {
|
||||||
const newtext = songsqlmodel.getLyricList(itemID);
|
const newtext = songsqlmodel.getLyricList(itemID);
|
||||||
print("adding: " + name + " of type " + type);
|
print("adding: " + name + " of type " + type);
|
||||||
serviceItemModel.insertItem(index, name,
|
serviceItemModel.insertItem(index, name,
|
||||||
type, background,
|
type, background,
|
||||||
backgroundType, newtext);
|
backgroundType, newtext);
|
||||||
totalServiceItems++;
|
totalServiceItems++;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
print("adding: " + name + " of type " + type);
|
||||||
|
serviceItemModel.insertItem(index, name,
|
||||||
|
type, background,
|
||||||
|
backgroundType);
|
||||||
|
totalServiceItems++;
|
||||||
}
|
}
|
||||||
|
|
||||||
function appendItem(name, type, background, backgroundType, text, itemID) {
|
function appendItem(name, type, background, backgroundType, text, itemID) {
|
||||||
print("adding: " + name + " of type " + type);
|
print("adding: " + name + " of type " + type);
|
||||||
let lyrics;
|
let lyrics;
|
||||||
if (type === "song") {
|
if (type === "song") {
|
||||||
|
print("THIS IS A SONG!!!!!");
|
||||||
print(itemID);
|
print(itemID);
|
||||||
lyrics = songsqlmodel.getLyricList(itemID);
|
lyrics = songsqlmodel.getLyricList(itemID);
|
||||||
print(lyrics);
|
print(lyrics);
|
||||||
}
|
serviceItemModel.addItem(name, type, background,
|
||||||
|
backgroundType, lyrics);
|
||||||
|
totalServiceItems++;
|
||||||
|
return;
|
||||||
|
};
|
||||||
|
|
||||||
print(background);
|
print(background);
|
||||||
print(backgroundType);
|
print(backgroundType);
|
||||||
|
|
||||||
serviceItemModel.addItem(name, type, background,
|
serviceItemModel.addItem(name, type, background,
|
||||||
backgroundType, lyrics);
|
backgroundType);
|
||||||
totalServiceItems++;
|
totalServiceItems++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue