diff --git a/shell/plugins/image-picker/ImagePicker.qml b/shell/plugins/image-picker/ImagePicker.qml index 7df84f72..65a56e4b 100644 --- a/shell/plugins/image-picker/ImagePicker.qml +++ b/shell/plugins/image-picker/ImagePicker.qml @@ -547,7 +547,7 @@ Item { // selection moves through the carousel. source: item.sourceActivated && item.thumbnailPath ? Util.fileUrl(item.thumbnailPath) : "" fillMode: Image.PreserveAspectCrop - asynchronous: true + asynchronous: false cache: true smooth: true } diff --git a/test/shell.d/image-picker-test.sh b/test/shell.d/image-picker-test.sh index 2fd8e5fa..a37ff2e3 100644 --- a/test/shell.d/image-picker-test.sh +++ b/test/shell.d/image-picker-test.sh @@ -47,4 +47,8 @@ assert( /function preloadRows[\s\S]*if \(opened \|\| requestActive\) return/.test(imagePickerQml), 'image picker ignores cache preloads while a request is visible' ) +assert( + /source: item\.sourceActivated && item\.thumbnailPath \? Util\.fileUrl\(item\.thumbnailPath\) : ""[\s\S]*asynchronous: false/.test(imagePickerQml), + 'image picker loads activated thumbnails synchronously to avoid carousel flicker' +) JS