mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-05 23:04:30 +08:00
Minor fixes to SidebarHeader
CURA-1689
This commit is contained in:
parent
88d87e8e85
commit
38c6c3cb01
@ -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…
x
Reference in New Issue
Block a user