mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
fix<Tree>: avoid to select hidden item in tree
This commit is contained in:
parent
07aa6661f4
commit
76f192785c
1 changed files with 2 additions and 0 deletions
|
@ -164,6 +164,8 @@ namespace SourceGit.Views.Controls {
|
|||
}
|
||||
|
||||
private void AddSelected(TreeItem item, bool removeOthers) {
|
||||
if (!item.IsVisible) return;
|
||||
|
||||
if (removeOthers && Selected.Count > 0) {
|
||||
UnselectAllChildren(this);
|
||||
Selected.Clear();
|
||||
|
|
Loading…
Reference in a new issue