From a7ea61f9af00b6a0299663270191c95937b20af7 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 6 Aug 2024 15:33:23 +0800 Subject: [PATCH] refactor: remove binding null warnings --- src/Views/Histories.axaml | 2 +- src/Views/Histories.axaml.cs | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Views/Histories.axaml b/src/Views/Histories.axaml index 5c2c08ed..b9ff71e6 100644 --- a/src/Views/Histories.axaml +++ b/src/Views/Histories.axaml @@ -84,7 +84,7 @@ diff --git a/src/Views/Histories.axaml.cs b/src/Views/Histories.axaml.cs index c87a4256..7e2feaa6 100644 --- a/src/Views/Histories.axaml.cs +++ b/src/Views/Histories.axaml.cs @@ -459,6 +459,16 @@ namespace SourceGit.Views set => SetValue(NavigationIdProperty, value); } + public AvaloniaList IssueTrackerRules + { + get + { + if (DataContext is ViewModels.Histories histories) + return histories.IssueTrackerRules; + return null; + } + } + static Histories() { NavigationIdProperty.Changed.AddClassHandler((h, _) =>