mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-28 11:37:29 -05:00
wallpaper selector: progress indicator for thumbnail generation
This commit is contained in:
@@ -80,6 +80,12 @@ MouseArea {
|
||||
thumbnailImage.source = "";
|
||||
thumbnailImage.source = thumbnailImage.thumbnailPath;
|
||||
}
|
||||
function onThumbnailGeneratedFile(filePath) {
|
||||
if (thumbnailImage.status !== Image.Error) return;
|
||||
if (Qt.resolvedUrl(thumbnailImage.sourcePath) !== Qt.resolvedUrl(filePath)) return;
|
||||
thumbnailImage.source = "";
|
||||
thumbnailImage.source = thumbnailImage.thumbnailPath;
|
||||
}
|
||||
}
|
||||
|
||||
layer.enabled: true
|
||||
|
||||
Reference in New Issue
Block a user