Fix null reference error
This commit is contained in:
parent
784034f2c6
commit
3d924e012e
1 changed files with 1 additions and 1 deletions
|
|
@ -228,7 +228,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
sliceButton.Enabled = sceneContext.EditableScene;
|
||||
}
|
||||
|
||||
if (this.printerTabPage?.printerActionsBar.modelViewButton is GuiWidget button)
|
||||
if (this.printerTabPage?.printerActionsBar?.modelViewButton is GuiWidget button)
|
||||
{
|
||||
button.Enabled = sceneContext.EditableScene;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue