mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-17 03:37:48 -06:00
Prevent rating when user is not logged in
CURA-6013
This commit is contained in:
parent
3225512851
commit
bb1bf14a01
1 changed files with 11 additions and 2 deletions
|
@ -24,9 +24,12 @@ Item
|
|||
hoverEnabled: ratingWidget.canRate
|
||||
acceptedButtons: Qt.NoButton
|
||||
onExited:
|
||||
{
|
||||
if(ratingWidget.canRate)
|
||||
{
|
||||
ratingWidget.indexHovered = -1
|
||||
}
|
||||
}
|
||||
|
||||
Row
|
||||
{
|
||||
|
@ -87,7 +90,13 @@ Item
|
|||
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…
Add table
Add a link
Reference in a new issue