Fix QML errors due to property providers not being initialised yet

This then updates in a fraction of a millisecond later before things even appear on the screen, so it's not so bad to not have a tooltip or to have it show 0 then.

Done during Turbo Testing and Tooling.
This commit is contained in:
Ghostkeeper 2020-03-20 16:58:18 +01:00
parent 31aee866f4
commit 2f3462203c
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A
5 changed files with 17 additions and 14 deletions

View file

@ -1,4 +1,4 @@
// Copyright (c) 2019 Ultimaker B.V.
// Copyright (c) 2020 Ultimaker B.V.
// Cura is released under the terms of the LGPLv3 or higher.
import QtQuick 2.10
@ -39,7 +39,7 @@ UM.TooltipArea
property alias valueText: textFieldWithUnit.text
property alias editingFinishedFunction: textFieldWithUnit.editingFinishedFunction
property string tooltipText: propertyProvider.properties.description
property string tooltipText: propertyProvider.properties.description ? propertyProvider.properties.description : ""
property real minimum: 0
property real maximum: Number.POSITIVE_INFINITY