mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 21:44:01 -06:00
Ensure that local votes are displayed right away
So even before an update is received, ensure that the data is updated CURA-6013
This commit is contained in:
parent
e92bd01fb2
commit
04f3601c27
2 changed files with 38 additions and 9 deletions
|
@ -6,6 +6,8 @@ import QtQuick.Controls 1.4
|
|||
import QtQuick.Controls.Styles 1.4
|
||||
import UM 1.1 as UM
|
||||
|
||||
import Cura 1.1 as Cura
|
||||
|
||||
Item
|
||||
{
|
||||
id: page
|
||||
|
@ -103,6 +105,12 @@ Item
|
|||
font: UM.Theme.getFont("default")
|
||||
color: UM.Theme.getColor("text_medium")
|
||||
}
|
||||
Label
|
||||
{
|
||||
text: catalog.i18nc("@label", "Rating") + ":"
|
||||
font: UM.Theme.getFont("default")
|
||||
color: UM.Theme.getColor("text_medium")
|
||||
}
|
||||
}
|
||||
Column
|
||||
{
|
||||
|
@ -160,6 +168,16 @@ Item
|
|||
font: UM.Theme.getFont("default")
|
||||
color: UM.Theme.getColor("text")
|
||||
}
|
||||
RatingWidget
|
||||
{
|
||||
id: rating
|
||||
visible: details.type == "plugin"
|
||||
packageId: details.id
|
||||
rating: details.average_rating
|
||||
numRatings: details.num_ratings
|
||||
userRating: details.user_rating
|
||||
enabled: toolbox.isInstalled(details.id) && Cura.API.account.isLoggedIn
|
||||
}
|
||||
}
|
||||
Rectangle
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue