mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
enhance: expand tree for current branch (#262)
This commit is contained in:
parent
72ca571c00
commit
2f5f98770f
1 changed files with 2 additions and 0 deletions
|
@ -152,6 +152,8 @@ namespace SourceGit.ViewModels
|
||||||
if (folders.TryGetValue(folder, out var val))
|
if (folders.TryGetValue(folder, out var val))
|
||||||
{
|
{
|
||||||
lastFolder = val;
|
lastFolder = val;
|
||||||
|
if (!lastFolder.IsExpanded)
|
||||||
|
lastFolder.IsExpanded |= (branch.IsCurrent || _expanded.Contains(folder));
|
||||||
}
|
}
|
||||||
else if (lastFolder == null)
|
else if (lastFolder == null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue