diff options
Diffstat (limited to 'modules/launcher')
| -rw-r--r-- | modules/launcher/WallpaperList.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/launcher/WallpaperList.qml b/modules/launcher/WallpaperList.qml index 430964e..b3a0fd7 100644 --- a/modules/launcher/WallpaperList.qml +++ b/modules/launcher/WallpaperList.qml @@ -20,10 +20,10 @@ PathView { list.length -= 1; // Always show odd number return list; } - onValuesChanged: root.currentIndex = search ? 0 : values.findIndex(w => w.path === Wallpapers.current) + onValuesChanged: root.currentIndex = search ? 0 : values.findIndex(w => w.path === Wallpapers.actualCurrent) } - Component.onCompleted: currentIndex = Wallpapers.list.findIndex(w => w.path === Wallpapers.current) + Component.onCompleted: currentIndex = Wallpapers.list.findIndex(w => w.path === Wallpapers.actualCurrent) Component.onDestruction: Wallpapers.stopPreview() onCurrentItemChanged: { |