mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-29 23:34:32 +08:00
Prevent rating when user is not logged in
CURA-6013
This commit is contained in:
parent
3225512851
commit
bb1bf14a01
@ -25,7 +25,10 @@ Item
|
|||||||
acceptedButtons: Qt.NoButton
|
acceptedButtons: Qt.NoButton
|
||||||
onExited:
|
onExited:
|
||||||
{
|
{
|
||||||
ratingWidget.indexHovered = -1
|
if(ratingWidget.canRate)
|
||||||
|
{
|
||||||
|
ratingWidget.indexHovered = -1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Row
|
Row
|
||||||
@ -87,7 +90,13 @@ Item
|
|||||||
return "#5a5a5a"
|
return "#5a5a5a"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onClicked: rated(index + 1) // Notify anyone who cares about this.
|
onClicked:
|
||||||
|
{
|
||||||
|
if(ratingWidget.canRate)
|
||||||
|
{
|
||||||
|
rated(index + 1) // Notify anyone who cares about this.
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user