Merge branch '1.4.0' of https://github.com/MatterHackers/MatterControl into 1.4.0
This commit is contained in:
commit
712ee8fd2c
4 changed files with 12 additions and 4 deletions
|
|
@ -39,6 +39,8 @@ namespace MatterHackers.MatterControl.PrintLibrary
|
|||
{
|
||||
public abstract class LibraryRowItem : GuiWidget
|
||||
{
|
||||
public static readonly string LoadingPlaceholderToken = "!Placeholder_ItemToken!";
|
||||
|
||||
public bool IsSelectedItem
|
||||
{
|
||||
get
|
||||
|
|
|
|||
|
|
@ -64,6 +64,12 @@ namespace MatterHackers.MatterControl.PrintLibrary
|
|||
|
||||
this.Name = this.ItemName + " Row Item Collection";
|
||||
|
||||
if (collection.Key == LibraryRowItem.LoadingPlaceholderToken)
|
||||
{
|
||||
this.EnableSlideInActions = false;
|
||||
this.IsViewHelperItem = true;
|
||||
}
|
||||
|
||||
CreateGuiElements();
|
||||
}
|
||||
|
||||
|
|
@ -170,7 +176,7 @@ namespace MatterHackers.MatterControl.PrintLibrary
|
|||
|
||||
public override void OnMouseDown(MouseEventArgs mouseEvent)
|
||||
{
|
||||
if (mouseEvent.Clicks == 2)
|
||||
if (mouseEvent.Clicks == 2 && this.EnableSlideInActions)
|
||||
{
|
||||
UiThread.RunOnIdle(ChangeCollection);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ namespace MatterHackers.MatterControl.PrintLibrary
|
|||
}
|
||||
|
||||
this.ItemName = libraryProvider.GetPrintItemName(itemIndex);
|
||||
if(this.ItemName.IndexOf("!ProviderIsLoading!") != -1)
|
||||
if(this.ItemName == LibraryRowItem.LoadingPlaceholderToken)
|
||||
{
|
||||
this.ItemName = "Retrieving Contents...".Localize();
|
||||
this.IsViewHelperItem = true;
|
||||
|
|
|
|||
|
|
@ -218,7 +218,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
if (materialTemperature != "0")
|
||||
{
|
||||
string setTempString = "M109 T{0} S{1}".FormatWith(extruderIndex0Based, materialTemperature);
|
||||
AddDefaultIfNotPresent(preStartGCode, setTempString, preStartGCodeLines, string.Format("wait for extruder {0}", extruderIndex0Based));
|
||||
AddDefaultIfNotPresent(preStartGCode, setTempString, preStartGCodeLines, string.Format("wait for extruder {0}", extruderIndex0Based + 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -270,7 +270,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
if (materialTemperature != "0")
|
||||
{
|
||||
string setTempString = "M109 T{0} S{1}".FormatWith(extruderIndex0Based, materialTemperature);
|
||||
AddDefaultIfNotPresent(postStartGCode, setTempString, postStartGCodeLines, string.Format("wait for extruder {0} to reach temperature", extruderIndex0Based));
|
||||
AddDefaultIfNotPresent(postStartGCode, setTempString, postStartGCodeLines, string.Format("wait for extruder {0} to reach temperature", extruderIndex0Based + 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue