mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
FileInfo overhaul
Opening DB works again
This commit is contained in:
@@ -31,7 +31,7 @@ namespace ModernKeePass.Application.Database.Commands.CreateDatabase
|
||||
await _database.Create(file,
|
||||
new Credentials
|
||||
{
|
||||
KeyFileContents = await _file.OpenBinaryFile(message.KeyFilePath),
|
||||
KeyFileContents = !string.IsNullOrEmpty(message.KeyFilePath) ? await _file.OpenBinaryFile(message.KeyFilePath) : null,
|
||||
Password = message.Password
|
||||
});
|
||||
_database.FileAccessToken = message.FilePath;
|
||||
|
Reference in New Issue
Block a user