mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 23:50:18 -04:00
Added Save As function
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
using System.ComponentModel;
|
||||
using Windows.UI.Xaml;
|
||||
using ModernKeePass.Common;
|
||||
using System;
|
||||
using Windows.Storage;
|
||||
|
||||
namespace ModernKeePass.ViewModels
|
||||
{
|
||||
@@ -29,5 +31,12 @@ namespace ModernKeePass.ViewModels
|
||||
app.Database.Close();
|
||||
NotifyPropertyChanged("IsSaveEnabled");
|
||||
}
|
||||
|
||||
internal void Save(StorageFile file)
|
||||
{
|
||||
var app = (App)Application.Current;
|
||||
app.Database.Save(file);
|
||||
NotifyPropertyChanged("IsSaveEnabled");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user