Simplify null guard
This commit is contained in:
parent
c9de5d0a83
commit
5b60cc7196
1 changed files with 2 additions and 5 deletions
|
|
@ -94,11 +94,8 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
|
||||
internal void RebuildSliceSettingsTabs()
|
||||
{
|
||||
if (topCategoryTabs != null)
|
||||
{
|
||||
// Close and remove children
|
||||
topCategoryTabs.Close();
|
||||
}
|
||||
// Close and remove children
|
||||
topCategoryTabs?.Close();
|
||||
|
||||
topCategoryTabs = new TabControl();
|
||||
topCategoryTabs.TabBar.BorderColor = ActiveTheme.Instance.PrimaryTextColor;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue