summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events/MenuChangedEventArgs.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI/Events/MenuChangedEventArgs.cs')
-rw-r--r--src/SMAPI/Events/MenuChangedEventArgs.cs16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/SMAPI/Events/MenuChangedEventArgs.cs b/src/SMAPI/Events/MenuChangedEventArgs.cs
index 362accec..c37fd216 100644
--- a/src/SMAPI/Events/MenuChangedEventArgs.cs
+++ b/src/SMAPI/Events/MenuChangedEventArgs.cs
@@ -1,5 +1,3 @@
-#nullable disable
-
using System;
using StardewValley.Menus;
@@ -11,20 +9,20 @@ namespace StardewModdingAPI.Events
/*********
** Accessors
*********/
- /// <summary>The previous menu.</summary>
- public IClickableMenu OldMenu { get; }
+ /// <summary>The previous menu, if any.</summary>
+ public IClickableMenu? OldMenu { get; }
- /// <summary>The current menu.</summary>
- public IClickableMenu NewMenu { get; }
+ /// <summary>The current menu, if any.</summary>
+ public IClickableMenu? NewMenu { get; }
/*********
** Public methods
*********/
/// <summary>Construct an instance.</summary>
- /// <param name="oldMenu">The previous menu.</param>
- /// <param name="newMenu">The current menu.</param>
- internal MenuChangedEventArgs(IClickableMenu oldMenu, IClickableMenu newMenu)
+ /// <param name="oldMenu">The previous menu, if any.</param>
+ /// <param name="newMenu">The current menu, if any.</param>
+ internal MenuChangedEventArgs(IClickableMenu? oldMenu, IClickableMenu? newMenu)
{
this.OldMenu = oldMenu;
this.NewMenu = newMenu;