mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-22 20:37:19 -08: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,21 +80,23 @@ 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;
|
||||
}
|
||||
|
||||
VisibleLocks = visible;
|
||||
}
|
||||
|
||||
private string _repo;
|
||||
|
|
Loading…
Reference in a new issue