Entry icons now correctly show up

Auto create new recycle bin works correctly
This commit is contained in:
Geoffroy BONNEVILLE
2020-04-08 20:02:13 +02:00
parent 752e96884d
commit 14fd4634db
5 changed files with 13 additions and 8 deletions

View File

@@ -49,8 +49,8 @@ namespace ModernKeePass.ViewModels
_recent = recent;
ClearAllCommand = new RelayCommand(ClearAll);
RecentItems = new ObservableCollection<RecentItemVm>(_recent.GetAll().GetAwaiter().GetResult()
.Select(r => new RecentItemVm(r)));
var recentItems = _recent.GetAll().GetAwaiter().GetResult().Select(r => new RecentItemVm(r));
RecentItems = new ObservableCollection<RecentItemVm>(recentItems);
if (RecentItems.Count > 0)
SelectedItem = RecentItems[0];
}