mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
Build hierarchy instead of using Automapper
Add entities before removing them
This commit is contained in:
@@ -28,7 +28,7 @@ namespace ModernKeePass.Application.Database.Queries.GetDatabase
|
||||
if (database.IsOpen)
|
||||
{
|
||||
database.Name = _databaseProxy.Name;
|
||||
database.RootGroup = _mapper.Map<GroupVm>(_databaseProxy.RootGroup);
|
||||
database.RootGroup = GroupVm.BuildHierarchy(null, _databaseProxy.RootGroup, _mapper);
|
||||
database.IsRecycleBinEnabled = _databaseProxy.IsRecycleBinEnabled;
|
||||
database.RecycleBin = _mapper.Map<GroupVm>(_databaseProxy.RecycleBin);
|
||||
database.Compression = _databaseProxy.Compression;
|
||||
|
Reference in New Issue
Block a user