mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 20:24:59 +00: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) {
|
private void AddSelected(TreeItem item, bool removeOthers) {
|
||||||
|
if (!item.IsVisible) return;
|
||||||
|
|
||||||
if (removeOthers && Selected.Count > 0) {
|
if (removeOthers && Selected.Count > 0) {
|
||||||
UnselectAllChildren(this);
|
UnselectAllChildren(this);
|
||||||
Selected.Clear();
|
Selected.Clear();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue