Fixed Bug: Slicing a part with no printer selected opens up Send Feedback form. We now open a message box prompting user to select a printer before slicing.
This commit is contained in:
parent
5a399d5c38
commit
97e1fb9d23
3 changed files with 27 additions and 4 deletions
|
|
@ -1085,11 +1085,18 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
|
||||
private void DoGenerateButton_Click(object state)
|
||||
{
|
||||
if (ActiveSliceSettings.Instance.IsValid() && printItem != null)
|
||||
if (PrinterConnectionAndCommunication.Instance.ActivePrinter != null)
|
||||
{
|
||||
((Button)state).Visible = false;
|
||||
SlicingQueue.Instance.QueuePartForSlicing(printItem);
|
||||
startedSliceFromGenerateButton = true;
|
||||
if (ActiveSliceSettings.Instance.IsValid() && printItem != null)
|
||||
{
|
||||
((Button)state).Visible = false;
|
||||
SlicingQueue.Instance.QueuePartForSlicing(printItem);
|
||||
startedSliceFromGenerateButton = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
StyledMessageBox.ShowMessageBox(null, "Oops! Please select a printer in order to continue slicing.", "Select Printer", StyledMessageBox.MessageType.OK);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue