remove redundant update available title

This commit is contained in:
Adeeb Shihadeh
2021-03-21 21:06:34 -07:00
parent ddde7efb4b
commit ce5d93da44
+1 -7
View File
@@ -80,18 +80,12 @@ void OffroadAlert::refresh() {
QVBoxLayout *layout = new QVBoxLayout;
if (updateAvailable) {
QLabel *title = new QLabel("Update Available");
title->setStyleSheet(R"(
font-size: 72px;
)");
layout->addWidget(title, 0, Qt::AlignLeft | Qt::AlignTop);
QString release_notes = QString::fromStdString(Params().get("ReleaseNotes"));
QLabel *body = new QLabel(release_notes);
body->setStyleSheet(R"(
font-size: 48px;
)");
layout->addWidget(body, 1, Qt::AlignLeft | Qt::AlignTop);
layout->addWidget(body, 0, Qt::AlignLeft | Qt::AlignTop);
} else {
// TODO: paginate the alerts
for (const auto &alert : alerts) {