mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-29 23:34:32 +08:00
Prevent QML warning
CURA-6013
This commit is contained in:
parent
e30ca20c54
commit
901c19e270
@ -3,8 +3,6 @@ import QtQuick.Controls 1.4
|
|||||||
import UM 1.1 as UM
|
import UM 1.1 as UM
|
||||||
import Cura 1.1 as Cura
|
import Cura 1.1 as Cura
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Row
|
Row
|
||||||
{
|
{
|
||||||
id: rating
|
id: rating
|
||||||
@ -24,7 +22,7 @@ Row
|
|||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
id: numRatingsLabel
|
id: numRatingsLabel
|
||||||
text: model.average_rating.toFixed(1) + " (" + model.num_ratings + " " + catalog.i18nc("@label", "ratings") + ")"
|
text: model.average_rating != undefined ? model.average_rating.toFixed(1) + " (" + model.num_ratings + " " + catalog.i18nc("@label", "ratings") + ")": ""
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
height: starIcon.height
|
height: starIcon.height
|
||||||
width: contentWidth
|
width: contentWidth
|
||||||
|
Loading…
x
Reference in New Issue
Block a user