mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 21:27:50 -06:00
Minor fixes to SidebarHeader
CURA-1689
This commit is contained in:
parent
88d87e8e85
commit
38c6c3cb01
1 changed files with 2 additions and 4 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue