mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57: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,22 +80,24 @@ 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;
|
||||||
private string _remote;
|
private string _remote;
|
||||||
|
|
Loading…
Reference in a new issue