mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 23:50:18 -04:00
Open file from Explorer with association works
Major code refactor in Open, Save and Recent pages and VM Main page automatically opens a sub page depending on context
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using System;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using Windows.Storage.AccessCache;
|
||||
using Windows.UI.Xaml;
|
||||
using ModernKeePass.Common;
|
||||
|
||||
namespace ModernKeePass.ViewModels
|
||||
@@ -43,6 +45,11 @@ namespace ModernKeePass.ViewModels
|
||||
{
|
||||
_selectedItem.IsSelected = true;
|
||||
}
|
||||
|
||||
var mru = StorageApplicationPermissions.MostRecentlyUsedList;
|
||||
var file = mru.GetFileAsync(SelectedItem.Token).GetAwaiter().GetResult();
|
||||
var app = (App)Application.Current;
|
||||
app.Database.DatabaseFile = file;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user