Skip to content

Commit

Permalink
Update poll card to show stale indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescowens committed Oct 30, 2023
1 parent 3b0a12b commit f527fc1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/qt/forms/voting/pollcard.ui
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,13 @@
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="staleLabel">
<property name="text">
<string>Stale</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="validatedLabel">
<property name="text">
Expand Down
6 changes: 6 additions & 0 deletions src/qt/voting/pollcard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ PollCard::PollCard(const PollItem& poll_item, QWidget* parent)
ui->invalidLabel->show();
}

if (poll_item.m_stale) {
ui->staleLabel->show();
} else {
ui->staleLabel->hide();
}

ui->topAnswerLabel->setText(poll_item.m_top_answer);

if (!poll_item.m_finished) {
Expand Down

0 comments on commit f527fc1

Please sign in to comment.