Making error messages coming back as list
fixing regression with dialog window showing as markdown (there were assumptions on it not being markdown)
This commit is contained in:
parent
45b1a32e03
commit
34b57c43b0
13 changed files with 127 additions and 141 deletions
|
|
@ -540,9 +540,18 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
resliceButton.Enabled = false;
|
||||
UiThread.RunOnIdle(async () =>
|
||||
{
|
||||
if (!activelySlicing
|
||||
&& SettingsValidation.SettingsValid(printer)
|
||||
&& printer.Bed.EditContext.SourceItem != null)
|
||||
bool doSlicing = !activelySlicing && printer.Bed.EditContext.SourceItem != null;
|
||||
if (doSlicing)
|
||||
{
|
||||
var errors = SettingsValidation.SettingsValid(printer);
|
||||
if(errors.Count > 0)
|
||||
{
|
||||
doSlicing = false;
|
||||
StyledMessageBox.ShowMessageBox(String.Join("\n\n\n\n", errors.ToArray()), "Slicing Error".Localize());
|
||||
}
|
||||
}
|
||||
|
||||
if(doSlicing)
|
||||
{
|
||||
activelySlicing = true;
|
||||
if (bottomRow.Name == null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue