Bug fixes

This commit is contained in:
retr0volkov
2025-07-17 10:30:47 +03:00 Unverified
parent 8ddce4005f
commit edae732fac
21 changed files with 65 additions and 66 deletions
+5 -5
View File
@@ -82,12 +82,14 @@ public partial class MainWindowViewModel : ViewModelBase
Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments))
});
if (files.Count < 1) return;
IsLoading = true;
foreach (var file in files)
{
var url = file.Path.AbsolutePath;
var decoded = HttpUtility.HtmlDecode(url);
var decoded = HttpUtility.UrlDecode(url);
var point = DataSerialization.LoadPoint(decoded);
point?.SetPropertyParents();
@@ -113,11 +115,9 @@ public partial class MainWindowViewModel : ViewModelBase
await w.StorageProvider.TryGetFolderFromPathAsync(
Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments))
});
if (folder.Count != 1) return;
foreach (var point in Points)
{
DataSerialization.SavePoint(point.GetPoint(), Path.Combine(HttpUtility.HtmlDecode(folder[0].Path.AbsolutePath), point.Name + ".json") );
}
DataSerialization.SavePoint(point.GetPoint(), Path.Combine(HttpUtility.UrlDecode(folder[0].Path.AbsolutePath), point.Name + ".json") );
}
// Visual and other properties