mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
Open from Explorer works again
Updated ModernKeePassLib
This commit is contained in:
@@ -249,9 +249,12 @@ namespace ModernKeePass
|
||||
var rootFrame = new Frame();
|
||||
var file = args.Files[0] as StorageFile;
|
||||
|
||||
Window.Current.Content = rootFrame;
|
||||
|
||||
if (file != null)
|
||||
{
|
||||
var token = StorageApplicationPermissions.FutureAccessList.Add(file, file.Name);
|
||||
// TODO: use service
|
||||
var token = StorageApplicationPermissions.MostRecentlyUsedList.Add(file, file.Path);
|
||||
var fileInfo = new FileInfo
|
||||
{
|
||||
Id = token,
|
||||
@@ -265,7 +268,6 @@ namespace ModernKeePass
|
||||
_navigation.NavigateTo(Constants.Navigation.MainPage);
|
||||
}
|
||||
|
||||
Window.Current.Content = rootFrame;
|
||||
Window.Current.Activate();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user