fixed bug in duplicating last item after video or image item

This commit is contained in:
Chris Cochrun 2022-04-08 16:50:32 -05:00
parent 036f83ecfe
commit 09b6370153
2 changed files with 15 additions and 1 deletions

View file

@ -152,6 +152,19 @@ Item {
}
}
function changeSlide() {
if (itemType === "song") {
previewSlide.text = root.text[textIndex];
print(root.text[textIndex]);
textIndex++;
} else if (itemType === "video") {
clearText();
}
else if (itemType === "image") {
clearText();
}
}
function nextSlide() {
currentServiceItem++;
changeServiceItem(currentServiceItem);