mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-24 10:50:52 +08:00
fix<Tree>: avoid to select hidden item in tree
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user