mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 02:19:04 +08: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
@ -289,11 +289,16 @@ Item
|
||||
|
||||
style: UM.Theme.styles.print_setup_header_button
|
||||
activeFocusOnPress: true
|
||||
menu: Cura.MaterialMenu
|
||||
Cura.MaterialMenu
|
||||
{
|
||||
id: materialsMenu
|
||||
extruderIndex: Cura.ExtruderManager.activeExtruderIndex
|
||||
updateModels: materialSelection.visible
|
||||
}
|
||||
onClicked:
|
||||
{
|
||||
materialsMenu.popup();
|
||||
}
|
||||
}
|
||||
Item
|
||||
{
|
||||
@ -345,7 +350,15 @@ Item
|
||||
activeFocusOnPress: true
|
||||
enabled: enabledCheckbox.checked
|
||||
|
||||
menu: Cura.NozzleMenu { extruderIndex: Cura.ExtruderManager.activeExtruderIndex }
|
||||
Cura.NozzleMenu
|
||||
{
|
||||
id: nozzlesMenu
|
||||
extruderIndex: Cura.ExtruderManager.activeExtruderIndex
|
||||
}
|
||||
onClicked:
|
||||
{
|
||||
nozzlesMenu.popup();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user