mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-10-10 07:17:52 -06:00
Fix duplicating the first item on the Profiles page
CURA-1585
This commit is contained in:
parent
1149a96d70
commit
5da3665832
1 changed files with 1 additions and 2 deletions
|
@ -49,8 +49,7 @@ UM.ManagementPage
|
|||
onActivateObject: Cura.MachineManager.setActiveQuality(currentItem.id)
|
||||
onAddObject: {
|
||||
var selectedContainer;
|
||||
if (objectList.currentIndex == 0) {
|
||||
// Current settings
|
||||
if (objectList.currentItem.id == Cura.MachineManager.activeQualityId) {
|
||||
selectedContainer = Cura.MachineManager.convertUserContainerToQuality();
|
||||
} else {
|
||||
selectedContainer = Cura.MachineManager.duplicateContainer(base.currentItem.id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue