mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 18:39:07 +08:00
Hide the Override button if it is not an option
CL-1259
This commit is contained in:
parent
28b04728f1
commit
d70acc793f
@ -30,6 +30,21 @@ UM.Dialog
|
|||||||
OutputDevice.forceSendJob(printer.activePrintJob.key)
|
OutputDevice.forceSendJob(printer.activePrintJob.key)
|
||||||
overrideConfirmationDialog.close()
|
overrideConfirmationDialog.close()
|
||||||
}
|
}
|
||||||
|
visible:
|
||||||
|
{
|
||||||
|
if (!printer || !printer.activePrintJob)
|
||||||
|
{
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
var canOverride = false
|
||||||
|
for (var i = 0; i < printer.activePrintJob.configurationChanges.length; i++)
|
||||||
|
{
|
||||||
|
var change = printer.activePrintJob.configurationChanges[i]
|
||||||
|
canOverride = canOverride || change.typeOfChange === "material_change";
|
||||||
|
}
|
||||||
|
return canOverride
|
||||||
|
}
|
||||||
},
|
},
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user