improving item button logic
fix spelling
This commit is contained in:
parent
90934aa04f
commit
2026bb220c
9 changed files with 18 additions and 11 deletions
|
|
@ -85,7 +85,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
duplicateButton.Click += (s, e) =>
|
||||
{
|
||||
string sanitizedName = numberMatch.Replace(inlineNameEdit.Text, "").Trim();
|
||||
string newProfileName = agg_basics.GetNonCollidingName(sanitizedName, presetsContext.PresetLayers.Select(preset => preset.ValueOrDefault(SettingsKey.layer_name)));
|
||||
string newProfileName = agg_basics.GetNonCollidingName(sanitizedName, new HashSet<string>(presetsContext.PresetLayers.Select(preset => preset.ValueOrDefault(SettingsKey.layer_name))));
|
||||
|
||||
var clonedLayer = presetsContext.PersistenceLayer.Clone();
|
||||
clonedLayer.Name = newProfileName;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue