mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-26 04:44:59 +00:00
Replaced an IEnumerable with a AvaloniaList for consistency
This commit is contained in:
parent
62c006591a
commit
4744414af3
1 changed files with 5 additions and 4 deletions
|
@ -1,5 +1,4 @@
|
||||||
using System.Collections.Generic;
|
using System.Linq;
|
||||||
using System.Linq;
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
using Avalonia.Collections;
|
using Avalonia.Collections;
|
||||||
|
@ -41,7 +40,7 @@ namespace SourceGit.ViewModels
|
||||||
get;
|
get;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<Models.LFSLock> FilteredLocks
|
public AvaloniaList<Models.LFSLock> FilteredLocks
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
|
@ -51,7 +50,9 @@ namespace SourceGit.ViewModels
|
||||||
return Locks;
|
return Locks;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ShowOnlyMyLocks ? Locks.Where(@lock => @lock.User == _userName) : Locks;
|
return _showOnlyMyLocks ?
|
||||||
|
new AvaloniaList<Models.LFSLock>(Locks.Where(@lock => @lock.User == _userName)) :
|
||||||
|
Locks;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue