mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Use the MouseArea trick to assure that the binding still works for the
checked property of the button. Contributes to CURA-6028.
This commit is contained in:
parent
1b3cb32334
commit
012ee0c02a
2 changed files with 7 additions and 4 deletions
|
|
@ -19,14 +19,12 @@ Cura.ExpandablePopup
|
|||
onDataChanged: updateActiveView()
|
||||
}
|
||||
|
||||
|
||||
property var activeView: null
|
||||
|
||||
function updateActiveView()
|
||||
{
|
||||
for (var index in viewModel.items)
|
||||
{
|
||||
|
||||
if (viewModel.items[index].active)
|
||||
{
|
||||
activeView = viewModel.items[index]
|
||||
|
|
@ -38,7 +36,6 @@ Cura.ExpandablePopup
|
|||
|
||||
Component.onCompleted:
|
||||
{
|
||||
updateActiveView()
|
||||
if (activeView == null)
|
||||
{
|
||||
UM.Controller.setActiveView(viewModel.getItem(0).id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue