mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
All VMs use viewmodellocator
This commit is contained in:
@@ -27,7 +27,8 @@ namespace ModernKeePass.Views
|
||||
var args = e.Parameter as NavigationItem;
|
||||
if (args != null)
|
||||
{
|
||||
DataContext = new EntryDetailVm(args.Id) { IsEditMode = args.IsNew };
|
||||
await Model.Initialize(args.Id);
|
||||
Model.IsEditMode = args.IsNew;
|
||||
if (args.IsNew) await Model.GeneratePassword();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user