Add update script version

GroupVM new breadcrumb code
This commit is contained in:
BONNEVILLE Geoffroy
2018-06-12 09:42:08 +02:00
parent 9921a4db52
commit 25945b8b3b
2 changed files with 103 additions and 5 deletions

View File

@@ -97,16 +97,15 @@ namespace ModernKeePass.ViewModels
{
get
{
var groups = new List<GroupVm>();
var groups = new ObservableCollection<GroupVm>();
var group = this;
while (group.ParentGroup != null)
{
group = group.ParentGroup;
groups.Add(group);
groups.Insert(0, group);
}
groups.Reverse();
return new ObservableCollection<GroupVm>(groups);
return groups;
}
}