diff --git a/src/Lively/Lively.UI.WinUI/ViewModels/DepthEstimateWallpaperViewModel.cs b/src/Lively/Lively.UI.WinUI/ViewModels/DepthEstimateWallpaperViewModel.cs index a52b97cf..dcda7b6c 100644 --- a/src/Lively/Lively.UI.WinUI/ViewModels/DepthEstimateWallpaperViewModel.cs +++ b/src/Lively/Lively.UI.WinUI/ViewModels/DepthEstimateWallpaperViewModel.cs @@ -160,22 +160,12 @@ await Task.Run(async() => }); inputImage.Extent(480, 270, Gravity.Center); await inputImage.WriteAsync(Path.Combine(destDir, "thumbnail.jpg")); - JsonStorage.StoreData(Path.Combine(destDir, "LivelyInfo.json"), new LivelyInfoModel() - { - Title = Path.GetFileNameWithoutExtension(inputImagePath), - Desc = i18n.GetString("DescriptionDepthWallpaperTemplate/Content"), - Type = WallpaperType.web, - IsAbsolutePath = false, - FileName = "index.html", - Contact = "https://github.com/rocksdanister/depthmap-wallpaper", - License = "See License.txt", - Author = "rocksdanister", - AppVersion = desktopCore.AssemblyVersion.ToString(), - Preview = "preview.gif", - Thumbnail = "thumbnail.jpg", - Tags = new() { "depth", "depthmap" }, - Arguments = string.Empty, - }); + //LivelyInfo.json update + var infoModel = JsonStorage.LoadData(Path.Combine(destDir, "LivelyInfo.json")); + infoModel.Title = Path.GetFileNameWithoutExtension(inputImagePath); + infoModel.Desc = i18n.GetString("DescriptionDepthWallpaperTemplate/Content"); + infoModel.AppVersion = desktopCore.AssemblyVersion.ToString(); + JsonStorage.StoreData(Path.Combine(destDir, "LivelyInfo.json"), infoModel); }); //Preview output to user