Got the 'connect' button to do a connect after selecting a printer if a printer was not selected.

This commit is contained in:
larsbrubaker 2014-04-10 16:38:22 -07:00
parent 84654d5e68
commit 2c88fdc1fc
2 changed files with 13 additions and 4 deletions

View file

@ -130,9 +130,10 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
gcodeDispalyWidget = new GuiWidget(HAnchor.ParentLeftRight, Agg.UI.VAnchor.ParentBottomTop);
string startingMessage = LocalizedString.Get("No GCode Available...");
string startingMessage = "";
if (printItem != null)
{
startingMessage = LocalizedString.Get("No GCode Available...");
startingMessage = LocalizedString.Get("Loading GCode...");
if (Path.GetExtension(printItem.FileLocation).ToUpper() == ".GCODE")
{