wallpapers/image: save drag and drop result after `addSlidePath`

wilder-5.26
Fushan Wen 4 years ago
parent 3f5f5c9eb5
commit 078bfa3e4a
No known key found for this signature in database
GPG Key ID: 2E48D1487C91DCAA
  1. 5
      wallpapers/image/imagepackage/contents/ui/main.qml

@ -35,6 +35,8 @@ QQC2.StackView {
}
} else {
imageWallpaper.addSlidePath(url);
// Save drag and drop result
wallpaper.configuration.SlidePaths = imageWallpaper.slidePaths;
}
}
@ -71,9 +73,6 @@ QQC2.StackView {
slideshowMode: wallpaper.configuration.SlideshowMode
slideshowFoldersFirst: wallpaper.configuration.SlideshowFoldersFirst
uncheckedSlides: wallpaper.configuration.UncheckedSlides
// Save drag and drop result
onSlidePathsChanged: wallpaper.configuration.SlidePaths = slidePaths
}
onFillModeChanged: Qt.callLater(loadImage);

Loading…
Cancel
Save