mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-02 09:35:00 +00:00
enhance: only raise BlockNavigationChangedEvent
when UseBlockNavigation
enabled
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
9590f96a44
commit
d335cac167
2 changed files with 12 additions and 6 deletions
|
@ -37,7 +37,7 @@ namespace SourceGit.Views
|
|||
|
||||
private void OnBlockNavigationChanged(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (sender is TextDiffView { UseBlockNavigation: true } textDiff)
|
||||
if (sender is TextDiffView textDiff)
|
||||
BlockNavigationIndicator.Text = textDiff.BlockNavigation?.Indicator ?? string.Empty;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue