diff --git a/ActionBar/PrintStatusRow.cs b/ActionBar/PrintStatusRow.cs index e681a7724..4018646fa 100644 --- a/ActionBar/PrintStatusRow.cs +++ b/ActionBar/PrintStatusRow.cs @@ -80,11 +80,11 @@ namespace MatterHackers.MatterControl.ActionBar this.HAnchor = HAnchor.ParentLeftRight; + this.queueDataView = queueDataView; + AddChildElements(); AddHandlers(); - this.queueDataView = queueDataView; - onActivePrintItemChanged(null, null); if (privateAddIconToPrintStatusRow != null) diff --git a/PartPreviewWindow/View3DTransfromPart.cs b/PartPreviewWindow/View3DTransfromPart.cs index 27fd3d4ab..76a8e2402 100644 --- a/PartPreviewWindow/View3DTransfromPart.cs +++ b/PartPreviewWindow/View3DTransfromPart.cs @@ -235,7 +235,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow base.OnMouseUp(mouseEvent); } - public View3DTransformPart(PrintItemWrapper printItemWrapper, Vector3 viewerVolume, MeshViewerWidget.BedShape bedShape, bool addCloseButton) + public View3DTransformPart(PrintItemWrapper printItemWrapper, Vector3 viewerVolume, MeshViewerWidget.BedShape bedShape, bool standAloneWindow) { MeshExtraData = new List(); MeshExtraData.Add(new PlatingMeshData()); @@ -282,6 +282,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow editToolBar.VAnchor |= Agg.UI.VAnchor.ParentCenter; processingProgressControl.Visible = false; + // If the window is embeded (in the center pannel) and there is no item loaded then don't show the add button enterEditButtonsContainer = new FlowLayoutWidget(); { Button addButton = textImageButtonFactory.Generate(LocalizedString.Get("Add"), "icon_circle_plus.png"); @@ -387,7 +388,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow leftRightSpacer.HAnchor = HAnchor.ParentLeftRight; buttonBottomPanel.AddChild(leftRightSpacer); - if (addCloseButton) + if (standAloneWindow) { Button closeButton = textImageButtonFactory.Generate(LocalizedString.Get("Close")); buttonBottomPanel.AddChild(closeButton); @@ -418,6 +419,11 @@ namespace MatterHackers.MatterControl.PartPreviewWindow } UiThread.RunOnIdle(AutoSpin); + + if (printItemWrapper == null && !standAloneWindow) + { + enterEditButtonsContainer.Visible = false; + } } bool hasDrawn = false; diff --git a/StaticData/Translations/Master.txt b/StaticData/Translations/Master.txt index d845d2df0..c3f038906 100644 --- a/StaticData/Translations/Master.txt +++ b/StaticData/Translations/Master.txt @@ -2112,3 +2112,9 @@ Translated:Install Driver English:Apply Translated:Apply +English:Buy Materials +Translated:Buy Materials + +English:Select an STL file +Translated:Select an STL file +