mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
CTRL-P only works when the button is enabled
CURA-3496
This commit is contained in:
parent
94c6b23418
commit
12918b02b5
1 changed files with 6 additions and 1 deletions
|
@ -79,7 +79,12 @@ Item {
|
||||||
// Shortcut for "save as/print/..."
|
// Shortcut for "save as/print/..."
|
||||||
Action {
|
Action {
|
||||||
shortcut: "Ctrl+P"
|
shortcut: "Ctrl+P"
|
||||||
onTriggered: saveToButton.clicked()
|
onTriggered:
|
||||||
|
{
|
||||||
|
// only work when the button is enabled
|
||||||
|
if (saveToButton.enabled)
|
||||||
|
saveToButton.clicked();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue