Minor changes

This commit is contained in:
bg45
2017-10-11 15:10:28 -04:00
committed by BONNEVILLE Geoffroy
parent 2f1355104e
commit f1737ca9f7
3 changed files with 10 additions and 4 deletions

View File

@@ -18,6 +18,13 @@ namespace ModernKeePass.ViewModels
get { return ((App)Application.Current).Database.Name; }
}
public OpenVm()
{
var database = ((App)Application.Current).Database;
if (database == null || database.Status != DatabaseHelper.DatabaseStatus.Opening) return;
OpenFile(database.DatabaseFile);
}
public event PropertyChangedEventHandler PropertyChanged;
private void NotifyPropertyChanged(string propertyName)