mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-10-31 13:03:20 -07:00
fix: locks list does not update after unlock
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
a5594130ed
commit
547c28adb8
1 changed files with 6 additions and 4 deletions
|
@ -80,22 +80,24 @@ namespace SourceGit.ViewModels
|
|||
|
||||
private void UpdateVisibleLocks()
|
||||
{
|
||||
var visible = new List<Models.LFSLock>();
|
||||
|
||||
if (!_showOnlyMyLocks)
|
||||
{
|
||||
VisibleLocks = _cachedLocks;
|
||||
foreach (var lfsLock in _cachedLocks)
|
||||
visible.Add(lfsLock);
|
||||
}
|
||||
else
|
||||
{
|
||||
var visible = new List<Models.LFSLock>();
|
||||
foreach (var lfsLock in _cachedLocks)
|
||||
{
|
||||
if (lfsLock.User == _userName)
|
||||
visible.Add(lfsLock);
|
||||
}
|
||||
}
|
||||
|
||||
VisibleLocks = visible;
|
||||
}
|
||||
}
|
||||
|
||||
private string _repo;
|
||||
private string _remote;
|
||||
|
|
Loading…
Reference in a new issue