Open presets window to Details view

- #Closes 690
This commit is contained in:
John Lewin 2016-04-27 19:38:41 -07:00
parent d3568cc3ab
commit 54f0c38bd2
2 changed files with 2 additions and 17 deletions

View file

@ -193,7 +193,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
Button cancelButton = buttonFactory.Generate(LocalizedString.Get("Cancel"));
cancelButton.Click += (sender, e) =>
{
UiThread.RunOnIdle(windowController.ChangeToSlicePresetList);
UiThread.RunOnIdle(windowController.Close);
};
container.AddChild(savePresetButton);

View file

@ -62,22 +62,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
this.functionToCallOnSave = functionToCallOnSave;
BackgroundColor = ActiveTheme.Instance.PrimaryBackgroundColor;
if (showList)
{
ChangeToSlicePresetList();
}
else
{
/*
if (collectionID == 0)
{
ChangeToSlicePresetDetail();
}
else
{
ChangeToSlicePresetDetail(GetCollection(collectionID));
} */
}
ChangeToSlicePresetDetail();
ShowAsSystemWindow();
this.MinimumSize = new Vector2(640, 480);
}