Skip to content

Commit

Permalink
Merge pull request #527 from mjakeman/oscfdezdz/hide-rating-when-zero
Browse files Browse the repository at this point in the history
comment-tile: Hide rating when zero
  • Loading branch information
mjakeman authored Feb 5, 2024
2 parents 04ef805 + 1188615 commit 52dd670
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/exm-comment-tile.blp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ template $ExmCommentTile : Gtk.Widget {
Gtk.Label author_badge {
styles ["author-badge"]
label: _("Author");
visible: false;
}

$ExmRating rating {
Expand Down
2 changes: 1 addition & 1 deletion src/exm-comment-tile.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ exm_comment_tile_constructed (GObject *object)
"rating", &score,
NULL);

if (score >= 0 && score <= 5)
if (score >= 1 && score <= 5)
{
g_object_set (self->rating, "rating", score, NULL);
gtk_widget_set_visible (GTK_WIDGET (self->rating), TRUE);
Expand Down

0 comments on commit 52dd670

Please sign in to comment.