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,21 +80,23 @@ namespace SourceGit.ViewModels
|
||||||
|
|
||||||
private void UpdateVisibleLocks()
|
private void UpdateVisibleLocks()
|
||||||
{
|
{
|
||||||
|
var visible = new List<Models.LFSLock>();
|
||||||
|
|
||||||
if (!_showOnlyMyLocks)
|
if (!_showOnlyMyLocks)
|
||||||
{
|
{
|
||||||
VisibleLocks = _cachedLocks;
|
foreach (var lfsLock in _cachedLocks)
|
||||||
|
visible.Add(lfsLock);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var visible = new List<Models.LFSLock>();
|
|
||||||
foreach (var lfsLock in _cachedLocks)
|
foreach (var lfsLock in _cachedLocks)
|
||||||
{
|
{
|
||||||
if (lfsLock.User == _userName)
|
if (lfsLock.User == _userName)
|
||||||
visible.Add(lfsLock);
|
visible.Add(lfsLock);
|
||||||
}
|
}
|
||||||
|
|
||||||
VisibleLocks = visible;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VisibleLocks = visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
private string _repo;
|
private string _repo;
|
||||||
|
|
Loading…
Reference in a new issue