Open from Explorer works again

Updated ModernKeePassLib
This commit is contained in:
Geoffroy BONNEVILLE
2020-04-24 15:52:46 +02:00
parent eacb3b182e
commit 3967db41b3
6 changed files with 13 additions and 12 deletions

View File

@@ -44,10 +44,9 @@ namespace ModernKeePass.Views
// Application now has read/write access to the picked file
var file = await picker.PickSingleFileAsync().AsTask();
if (file == null) return;
//var token = StorageApplicationPermissions.FutureAccessList.Add(file, file.Name);
// TODO: use service
var token = StorageApplicationPermissions.MostRecentlyUsedList.Add(file, file.Name);
var token = StorageApplicationPermissions.MostRecentlyUsedList.Add(file, file.Path);
var fileInfo = new FileInfo
{
Path = file.Path,