Recent items list auto removes non existing files

Choosing a recent list item does not change the database file anymore
This commit is contained in:
2017-10-12 10:36:58 +02:00
committed by BONNEVILLE Geoffroy
parent f1737ca9f7
commit acb5bcc230
6 changed files with 52 additions and 29 deletions

View File

@@ -1,13 +1,25 @@
using Windows.Storage;
using System;
using Windows.Storage;
using ModernKeePass.Common;
using Windows.Storage.AccessCache;
namespace ModernKeePass.ViewModels
{
public class RecentItemVm: NotifyPropertyChangedBase
{
private bool _isSelected;
public string Token { get; set; }
public string Name { get; set; }
public RecentItemVm(AccessListEntry entry, StorageFile file)
{
Token = entry.Token;
Name = entry.Metadata;
DatabaseFile = file;
}
public StorageFile DatabaseFile { get; private set; }
public string Token { get; private set; }
public string Name { get; private set; }
public string Path => DatabaseFile.Path;
public bool IsSelected
{