Add support for closing MatterControl while printing
- Rename CloseAndRemoveAllChildren
This commit is contained in:
parent
58cada60af
commit
77633139aa
10 changed files with 39 additions and 29 deletions
|
|
@ -72,7 +72,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
|
||||
public void Reload(PrintItemWrapper printItem)
|
||||
{
|
||||
this.CloseAndRemoveAllChildren();
|
||||
this.CloseAllChildren();
|
||||
this.Load(printItem);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
textImageButtonFactory.disabledTextColor = ActiveTheme.Instance.PrimaryTextColor;
|
||||
textImageButtonFactory.pressedTextColor = ActiveTheme.Instance.PrimaryTextColor;
|
||||
|
||||
CloseAndRemoveAllChildren();
|
||||
CloseAllChildren();
|
||||
gcodeViewWidget = null;
|
||||
gcodeProcessingStateInfoText = null;
|
||||
|
||||
|
|
@ -427,7 +427,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
|
||||
private void AddModelInfo(FlowLayoutWidget buttonPanel)
|
||||
{
|
||||
buttonPanel.CloseAndRemoveAllChildren();
|
||||
buttonPanel.CloseAllChildren();
|
||||
|
||||
double oldWidth = textImageButtonFactory.FixedWidth;
|
||||
textImageButtonFactory.FixedWidth = 44 * TextWidget.GlobalPointSizeScaleRatio;
|
||||
|
|
@ -548,7 +548,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
|
||||
private void AddDisplayControls(FlowLayoutWidget buttonPanel)
|
||||
{
|
||||
buttonPanel.CloseAndRemoveAllChildren();
|
||||
buttonPanel.CloseAllChildren();
|
||||
|
||||
double oldWidth = textImageButtonFactory.FixedWidth;
|
||||
textImageButtonFactory.FixedWidth = 44 * TextWidget.GlobalPointSizeScaleRatio;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue