fix new scheme preview bug with wallpaper carousel
This commit is contained in:
@@ -47,7 +47,8 @@ CarouselView {
|
|||||||
jumpToIndex(idx);
|
jumpToIndex(idx);
|
||||||
}
|
}
|
||||||
Component.onDestruction: Wallpapers.stopPreview()
|
Component.onDestruction: Wallpapers.stopPreview()
|
||||||
onPreviewIndexChanged: (realIndex, modelData) => {
|
onCurrentItemChanged: {
|
||||||
Wallpapers.preview(modelData.path);
|
if (currentItem)
|
||||||
|
Wallpapers.preview(currentItem.modelData.path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user