summaryrefslogtreecommitdiff
path: root/modules/launcher/WallpaperItem.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/launcher/WallpaperItem.qml')
-rw-r--r--modules/launcher/WallpaperItem.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/launcher/WallpaperItem.qml b/modules/launcher/WallpaperItem.qml
index e21743c..c0b91d4 100644
--- a/modules/launcher/WallpaperItem.qml
+++ b/modules/launcher/WallpaperItem.qml
@@ -9,6 +9,7 @@ StyledRect {
id: root
required property Wallpapers.Wallpaper modelData
+ required property Scope launcher
scale: 0.5
opacity: 0
@@ -26,7 +27,8 @@ StyledRect {
radius: Appearance.rounding.normal
function onClicked(): void {
- console.log("clicked");
+ Wallpapers.setWallpaper(root.modelData.path);
+ root.launcher.launcherVisible = false;
}
}