mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 20:54:59 +00:00
refactor: remove binding null warnings
This commit is contained in:
parent
1d15c4c95f
commit
a7ea61f9af
2 changed files with 11 additions and 1 deletions
|
@ -459,6 +459,16 @@ namespace SourceGit.Views
|
|||
set => SetValue(NavigationIdProperty, value);
|
||||
}
|
||||
|
||||
public AvaloniaList<Models.IssueTrackerRule> IssueTrackerRules
|
||||
{
|
||||
get
|
||||
{
|
||||
if (DataContext is ViewModels.Histories histories)
|
||||
return histories.IssueTrackerRules;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
static Histories()
|
||||
{
|
||||
NavigationIdProperty.Changed.AddClassHandler<Histories>((h, _) =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue