Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
C# MenuHandler: fix for CloseAndClearHistory
apparently the null-forgiving / null-suppression operator is ignored..
  • Loading branch information
manups4e committed Aug 4, 2023
1 parent 2a1a833 commit 4f585ff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ScaleformUI_Csharp/Menus/MenuHandler.cs
Expand Up @@ -146,8 +146,10 @@ public static async void ProcessMenus()
/// </summary>
public static void CloseAndClearHistory()
{
currentMenu!.Visible = false;
currentBase!.Visible = false;
if (currentMenu != null)
currentMenu.Visible = false;
if (currentBase != null)
currentBase.Visible = false;
BreadcrumbsHandler.Clear();
}
}
Expand Down

0 comments on commit 4f585ff

Please sign in to comment.