Skip to content

Commit

Permalink
fix nullability checks
Browse files Browse the repository at this point in the history
  • Loading branch information
aspriddell committed Jul 5, 2024
1 parent 4a1aeeb commit 064c8a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DragonFruit.Kaplan/ReactiveAppWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
using FluentAvalonia.UI.Windowing;
using ReactiveUI;

#nullable enable

namespace DragonFruit.Kaplan
{
/// <summary>
Expand All @@ -23,7 +25,7 @@ namespace DragonFruit.Kaplan
public class ReactiveAppWindow<TViewModel> : AppWindow, IViewFor<TViewModel> where TViewModel : class
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("AvaloniaProperty", "AVP1002", Justification = "Generic avalonia property is expected here.")]
public static readonly StyledProperty<TViewModel> ViewModelProperty = AvaloniaProperty.Register<ReactiveWindow<TViewModel>, TViewModel?>(nameof(ViewModel));
public static readonly StyledProperty<TViewModel?> ViewModelProperty = AvaloniaProperty.Register<ReactiveWindow<TViewModel>, TViewModel?>(nameof(ViewModel));

/// <summary>
/// Initializes a new instance of the <see cref="ReactiveWindow{TViewModel}"/> class.
Expand Down

0 comments on commit 064c8a0

Please sign in to comment.