Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 00ccf29

Browse files
fix: OnNodesSelectionChanged event should not be disabled while auto-selecting current branch (#1022)
Signed-off-by: leo <longshuang@msn.cn>
1 parent 4c4d8ae commit 00ccf29

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

‎src/Views/BranchTree.axaml.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -246,16 +246,11 @@ public void Select(Models.Branch branch)
246246
if (branch == null)
247247
return;
248248

249-
_disableSelectionChangingEvent = true;
250-
251249
var treePath = new List<ViewModels.BranchTreeNode>();
252250
FindTreePath(treePath, Nodes, branch.Name, 0);
253251

254252
if (treePath.Count == 0)
255-
{
256-
_disableSelectionChangingEvent = false;
257253
return;
258-
}
259254

260255
var oldRowCount = Rows.Count;
261256
var rows = Rows;
@@ -276,7 +271,6 @@ public void Select(Models.Branch branch)
276271
var target = treePath[treePath.Count - 1];
277272
BranchesPresenter.SelectedItem = target;
278273
BranchesPresenter.ScrollIntoView(target);
279-
_disableSelectionChangingEvent = false;
280274

281275
if (oldRowCount != rows.Count)
282276
RaiseEvent(new RoutedEventArgs(RowsChangedEvent));

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /