WIP: web parser + ui

This commit is contained in:
Ray committed 2021-09-17 16:37:01 +01:00
1 parent c00d42a7d8
commit 682af23f55
11 files changed
+540 -147

No files matched your search

+2 -2
View File
@@ -37,7 +37,7 @@ namespace BookmarkManager
return Result.Create(false, "Could not read file, unexpected format");
}
List<BookmarkItemViewModel> rs = JsonConvert.DeserializeObject<List<BookmarkItemViewModel>>(sourceCode);
List<BookmarkItem> rs = JsonConvert.DeserializeObject<List<BookmarkItem>>(sourceCode);
if (rs == null)
{
return Result.Create(false, "Could not read file, incorrect format");
@@ -69,7 +69,7 @@ namespace BookmarkManager
public override Result Save(BookmarkTreeView treeview, string filename, string password)
{
List<BookmarkItemViewModel> rs = treeview.GetBookmarkList();
List<BookmarkItem> rs = treeview.GetBookmarkList();
bool rv = SharpZipLib.CreateSingle(filename, password, "bookmarks.json", JsonConvert.SerializeObject(rs));