mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-21 21:58:01 -06:00
CURA-4870 Clean the error messages from qml by not rendering components
if there is no outputDevice defined.
This commit is contained in:
parent
dfb903fb81
commit
9196802e83
3 changed files with 7 additions and 4 deletions
|
@ -11,7 +11,7 @@ import Cura 1.0 as Cura
|
|||
Column
|
||||
{
|
||||
id: base
|
||||
property var outputDevice: Cura.MachineManager.printerOutputDevices[0]
|
||||
property var outputDevice: null
|
||||
property var computedHeight: container.height + configurationListHeading.height + 3 * padding
|
||||
height: childrenRect.height + 2 * padding
|
||||
padding: UM.Theme.getSize("default_margin").width
|
||||
|
@ -78,7 +78,7 @@ Column
|
|||
onUniqueConfigurationsChanged:
|
||||
{
|
||||
// FIXME For now the model should be removed and then created again, otherwise changes in the printer don't automatically update the UI
|
||||
configurationList.model = null
|
||||
configurationList.model = []
|
||||
configurationList.model = outputDevice.uniqueConfigurations
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue