mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 23:50:18 -04:00
Allow any file type for key selection
This commit is contained in:
@@ -132,13 +132,12 @@ namespace ModernKeePass.Views.UserControls
|
|||||||
|
|
||||||
private async void KeyFileButton_Click(object sender, RoutedEventArgs e)
|
private async void KeyFileButton_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
var picker =
|
var picker = new FileOpenPicker
|
||||||
new FileOpenPicker
|
|
||||||
{
|
{
|
||||||
ViewMode = PickerViewMode.List,
|
ViewMode = PickerViewMode.List,
|
||||||
SuggestedStartLocation = PickerLocationId.DocumentsLibrary
|
SuggestedStartLocation = PickerLocationId.DocumentsLibrary
|
||||||
};
|
};
|
||||||
picker.FileTypeFilter.Add(".key");
|
picker.FileTypeFilter.Add("*");
|
||||||
|
|
||||||
// Application now has read/write access to the picked file
|
// Application now has read/write access to the picked file
|
||||||
var file = await picker.PickSingleFileAsync();
|
var file = await picker.PickSingleFileAsync();
|
||||||
|
Reference in New Issue
Block a user