mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -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/..."
|
||||
Action {
|
||||
shortcut: "Ctrl+P"
|
||||
onTriggered: saveToButton.clicked()
|
||||
onTriggered:
|
||||
{
|
||||
// only work when the button is enabled
|
||||
if (saveToButton.enabled)
|
||||
saveToButton.clicked();
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue