remove redundant update available title

pull/20428/head
Adeeb Shihadeh 5 years ago
parent ddde7efb4b
commit ce5d93da44
  1. 8
      selfdrive/ui/qt/widgets/offroad_alerts.cc

@ -80,18 +80,12 @@ void OffroadAlert::refresh() {
QVBoxLayout *layout = new QVBoxLayout; QVBoxLayout *layout = new QVBoxLayout;
if (updateAvailable) { 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")); QString release_notes = QString::fromStdString(Params().get("ReleaseNotes"));
QLabel *body = new QLabel(release_notes); QLabel *body = new QLabel(release_notes);
body->setStyleSheet(R"( body->setStyleSheet(R"(
font-size: 48px; font-size: 48px;
)"); )");
layout->addWidget(body, 1, Qt::AlignLeft | Qt::AlignTop); layout->addWidget(body, 0, Qt::AlignLeft | Qt::AlignTop);
} else { } else {
// TODO: paginate the alerts // TODO: paginate the alerts
for (const auto &alert : alerts) { for (const auto &alert : alerts) {

Loading…
Cancel
Save