Minor fixes to SidebarHeader

CURA-1689
This commit is contained in:
fieldOfView 2016-06-09 15:51:28 +02:00
parent 88d87e8e85
commit 38c6c3cb01

View File

@ -128,8 +128,6 @@ Column
ExtruderManager.setActiveExtruderIndex(index); ExtruderManager.setActiveExtruderIndex(index);
} }
Component.onCompleted: console.log(model.name);
style: ButtonStyle style: ButtonStyle
{ {
background: Rectangle background: Rectangle
@ -365,7 +363,7 @@ Column
//Insert a separator between readonly and custom profiles //Insert a separator between readonly and custom profiles
if(separatorIndex < 0 && index > 0) if(separatorIndex < 0 && index > 0)
{ {
if(model.getItem(index-1).readOnly != model.getItem(index).metadata.read_only) if(model.getItem(index-1).readOnly != model.getItem(index).readOnly)
{ {
profileSelectionMenu.insertSeparator(index); profileSelectionMenu.insertSeparator(index);
separatorIndex = index; separatorIndex = index;
@ -376,7 +374,7 @@ Column
} }
onObjectRemoved: onObjectRemoved:
{ {
//When adding a profile, the menu is rebuild by removing all items. //When adding a profile, the menu is rebuilt by removing all items.
//If a separator was added, we need to remove that too. //If a separator was added, we need to remove that too.
if(separatorIndex >= 0) if(separatorIndex >= 0)
{ {