mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 23:53:56 -06:00
Workaround old-style menu's not closeable on Mac OSX.
Menu's didn't always close, and on newer Macs users wouldnt be able to even close the menu, making this a blocker. Will fix this properly before the final, but at least the beta should be usable now. CURA-8142
This commit is contained in:
parent
b9f76ef9e4
commit
7520e3b148
1 changed files with 15 additions and 2 deletions
|
@ -289,11 +289,16 @@ Item
|
||||||
|
|
||||||
style: UM.Theme.styles.print_setup_header_button
|
style: UM.Theme.styles.print_setup_header_button
|
||||||
activeFocusOnPress: true
|
activeFocusOnPress: true
|
||||||
menu: Cura.MaterialMenu
|
Cura.MaterialMenu
|
||||||
{
|
{
|
||||||
|
id: materialsMenu
|
||||||
extruderIndex: Cura.ExtruderManager.activeExtruderIndex
|
extruderIndex: Cura.ExtruderManager.activeExtruderIndex
|
||||||
updateModels: materialSelection.visible
|
updateModels: materialSelection.visible
|
||||||
}
|
}
|
||||||
|
onClicked:
|
||||||
|
{
|
||||||
|
materialsMenu.popup();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
|
@ -345,7 +350,15 @@ Item
|
||||||
activeFocusOnPress: true
|
activeFocusOnPress: true
|
||||||
enabled: enabledCheckbox.checked
|
enabled: enabledCheckbox.checked
|
||||||
|
|
||||||
menu: Cura.NozzleMenu { extruderIndex: Cura.ExtruderManager.activeExtruderIndex }
|
Cura.NozzleMenu
|
||||||
|
{
|
||||||
|
id: nozzlesMenu
|
||||||
|
extruderIndex: Cura.ExtruderManager.activeExtruderIndex
|
||||||
|
}
|
||||||
|
onClicked:
|
||||||
|
{
|
||||||
|
nozzlesMenu.popup();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue