FolderListModel: improve robustness by reusing the same path

This commit is contained in:
quadbyte 2025-08-15 00:11:56 -04:00
parent b79744c135
commit dd471581cd
2 changed files with 3 additions and 6 deletions

View file

@ -120,8 +120,7 @@ Singleton {
if (status === FolderListModel.Ready) {
var files = []
for (var i = 0; i < count; i++) {
var filepath = (Settings.data.wallpaper.directory !== undefined ? Settings.data.wallpaper.directory : "") + "/" + get(
i, "fileName")
var filepath = folderModel.folder + "/" + get(i, "fileName")
files.push(filepath)
}
wallpaperList = files