adding returns to case statements to stop processing

This commit is contained in:
Chris Cochrun 2023-02-24 16:48:44 -06:00
parent fd7ac5f398
commit 4f10f53ff5

View file

@ -582,6 +582,7 @@ Item {
type, image.filePath, type, image.filePath,
"image", "", "", "image", "", "",
"", 0, 0); "", 0, 0);
return;
} }
case 'video': { case 'video': {
const video = videoProxyModel.getVideo(itemID); const video = videoProxyModel.getVideo(itemID);
@ -590,6 +591,7 @@ Item {
type, video.filePath, type, video.filePath,
"video", "", "", "video", "", "",
"", 0, 0); "", 0, 0);
return;
} }
case 'song': { case 'song': {
const lyrics = songProxyModel.getLyricList(itemID); const lyrics = songProxyModel.getLyricList(itemID);