Verified Commit 514cbc78 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

wallpapers/image: don't duplicate `positionViewAtIndex` in `KCM.GridView`

It's already set in GridViewInternal.
parent e8613dda
Pipeline #188792 passed with stage
in 10 minutes and 41 seconds
......@@ -42,7 +42,6 @@ Item {
function resetCurrentIndex() {
//that min is needed as the module will be populated in an async way
//and only on demand so we can't ensure it already exists
view.positionViewAtIndex(Math.min(imageModel.indexOf(cfg_Image), imageModel.count - 1), GridView.Beginning);
view.currentIndex = Qt.binding(() => Math.min(imageModel.indexOf(cfg_Image), imageModel.count - 1));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment