[BUG] Rare NullReferenceException at LoadSubMenuCompleted (#359), version 1.2.8.1

This commit is contained in:
Markus Hofknecht 2022-02-18 16:02:16 +01:00
parent 5eb471b077
commit e6bd977f5c
2 changed files with 7 additions and 3 deletions

View file

@ -266,7 +266,11 @@ namespace SystemTrayMenu.Business
menuData.RowDataParent.IsMenuOpen = false;
menuData.RowDataParent.IsClicking = false;
menuData.RowDataParent.IsSelected = false;
RefreshSelection(menus[menuLoading.Level - 1].GetDataGridView());
Menu menuPrevious = menus[menuData.Level - 1];
if (menuPrevious != null)
{
RefreshSelection(menuPrevious.GetDataGridView());
}
}
}
}

View file

@ -39,5 +39,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.8.0")]
[assembly: AssemblyFileVersion("1.2.8.0")]
[assembly: AssemblyVersion("1.2.8.1")]
[assembly: AssemblyFileVersion("1.2.8.1")]