mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Add a disabled state to the expandable components
In this case, when the component is disabled, there is an optional message that will show. It works for instance when loading a gcode and the print setup panel has to be disabled. Contributes to CURA-5941.
This commit is contained in:
parent
90f822f683
commit
3f97f83c47
3 changed files with 110 additions and 57 deletions
|
|
@ -16,6 +16,7 @@ Cura.ExpandableComponent
|
|||
contentPadding: UM.Theme.getSize("default_lining").width
|
||||
contentHeaderTitle: catalog.i18nc("@label", "Print settings")
|
||||
enabled: !preSlicedData
|
||||
disabledText: catalog.i18nc("@label shown when we load a Gcode file", "Print setup disabled. G code file can not be modified."
|
||||
|
||||
UM.I18nCatalog
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue