adding returns to case statements to stop processing
This commit is contained in:
parent
fd7ac5f398
commit
4f10f53ff5
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue