mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-29 13:51:12 -07:00
Make ViewSelector panel close upon selecting different view
CURA-5785
This commit is contained in:
parent
52b2f4579a
commit
bc5a2ce5b0
1 changed files with 5 additions and 2 deletions
|
|
@ -75,7 +75,6 @@ Item
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
font: UM.Theme.getFont("default")
|
font: UM.Theme.getFont("default")
|
||||||
color: UM.Theme.getColor("text")
|
color: UM.Theme.getColor("text")
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
popupItem: Column
|
popupItem: Column
|
||||||
|
|
@ -96,7 +95,11 @@ Item
|
||||||
radius: UM.Theme.getSize("default_radius").width
|
radius: UM.Theme.getSize("default_radius").width
|
||||||
checkable: true
|
checkable: true
|
||||||
checked: active
|
checked: active
|
||||||
onClicked: UM.Controller.setActiveView(id)
|
onClicked:
|
||||||
|
{
|
||||||
|
viewSelector.togglePopup()
|
||||||
|
UM.Controller.setActiveView(id)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue