mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Update MonitorConfigOverrideDialog.qml
Contributes to CL-1259
This commit is contained in:
parent
7be3863d51
commit
0c9f3a1842
1 changed files with 20 additions and 0 deletions
|
|
@ -30,6 +30,26 @@ UM.Dialog
|
||||||
OutputDevice.forceSendJob(printer.activePrintJob.key)
|
OutputDevice.forceSendJob(printer.activePrintJob.key)
|
||||||
overrideConfirmationDialog.close()
|
overrideConfirmationDialog.close()
|
||||||
}
|
}
|
||||||
|
visible:
|
||||||
|
{
|
||||||
|
// Don't show the button if we're missing a printer or print job
|
||||||
|
if (!printer || !printer.activePrintJob)
|
||||||
|
{
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
// Check each required change...
|
||||||
|
for (var i = 0; i < printer.activePrintJob.configurationChanges.length; i++)
|
||||||
|
{
|
||||||
|
var change = printer.activePrintJob.configurationChanges[i]
|
||||||
|
// If that type of change is in the list of blocking changes, hide the button
|
||||||
|
if (!change.canOverride)
|
||||||
|
{
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue