Order presets by name
This commit is contained in:
parent
00ca673794
commit
65f08441e4
1 changed files with 1 additions and 1 deletions
|
|
@ -247,7 +247,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
defaultMenuItem.Selected += MenuItem_Selected;
|
||||
|
||||
var listSource = (layerType == NamedSettingsLayers.Material) ? printer.Settings.MaterialLayers : printer.Settings.QualityLayers;
|
||||
foreach (var layer in listSource)
|
||||
foreach (var layer in listSource.OrderBy(l => l.Name))
|
||||
{
|
||||
MenuItem menuItem = dropDownList.AddItem(layer.Name, layer.LayerID);
|
||||
menuItem.Name = layer.Name + " Menu";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue