mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
Minor changes
This commit is contained in:

committed by
BONNEVILLE Geoffroy

parent
2f1355104e
commit
f1737ca9f7
@@ -40,10 +40,10 @@ namespace ModernKeePass.Common
|
||||
{
|
||||
key.AddUserKey(new KcpPassword(password));
|
||||
var ioConnection = IOConnectionInfo.FromFile(DatabaseFile);
|
||||
if (createNew)
|
||||
/*if (createNew)
|
||||
{
|
||||
_pwDatabase.New(ioConnection, key);
|
||||
}
|
||||
_pwDatabase.Save(new NullStatusLogger());
|
||||
}*/
|
||||
_pwDatabase.Open(ioConnection, key, new NullStatusLogger());
|
||||
|
||||
if (_pwDatabase.IsOpen)
|
||||
|
@@ -1,5 +1,4 @@
|
||||
using System.Threading.Tasks;
|
||||
using Windows.Storage;
|
||||
using Windows.System;
|
||||
using Windows.UI.Core;
|
||||
using Windows.UI.Xaml;
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user