mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-15 09:52:04 +08:00
remove redundant update available title
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user