Fix for duplicate settings bug
This commit is contained in:
parent
101a5bc9be
commit
a5569bfdf7
1 changed files with 8 additions and 2 deletions
|
|
@ -877,8 +877,14 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
IEnumerable<DataStorage.SliceSetting> settingsList = this.windowController.GetCollectionSettings(windowController.ActivePresetLayer.settingsCollectionData.Id);
|
||||
foreach (DataStorage.SliceSetting s in settingsList)
|
||||
{
|
||||
settingsDictionary[s.Name] = s;
|
||||
}
|
||||
DataStorage.SliceSetting newSetting = new DataStorage.SliceSetting();
|
||||
newSetting.Name = s.Name;
|
||||
newSetting.Value = s.Value;
|
||||
|
||||
settingsDictionary.Add(s.Name, newSetting);
|
||||
|
||||
}
|
||||
|
||||
SettingsLayer duplicateLayer = new SettingsLayer(duplicateCollection, settingsDictionary);
|
||||
windowController.ActivePresetLayer = duplicateLayer;
|
||||
windowController.ChangeToSlicePresetDetail();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue