mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 06:28:59 +08:00
Make ViewSelector panel close upon selecting different view
CURA-5785
This commit is contained in:
parent
52b2f4579a
commit
bc5a2ce5b0
@ -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…
x
Reference in New Issue
Block a user