wip
This commit is contained in:
10
selfdrive/ui/qt/widgets/offroad_alerts.cc
Executable file → Normal file
10
selfdrive/ui/qt/widgets/offroad_alerts.cc
Executable file → Normal file
@@ -37,13 +37,9 @@ AbstractAlert::AbstractAlert(bool hasRebootBtn, QWidget *parent) : QFrame(parent
|
||||
disable_check_btn->setFixedSize(625, 125);
|
||||
footer_layout->addWidget(disable_check_btn, 1, Qt::AlignBottom | Qt::AlignCenter);
|
||||
QObject::connect(disable_check_btn, &QPushButton::clicked, [=]() {
|
||||
if (!params.getBool("FireTheBabysitter")) {
|
||||
params.putBool("FireTheBabysitter", true);
|
||||
}
|
||||
if (!params.getBool("OfflineMode")) {
|
||||
params.putBool("OfflineMode", true);
|
||||
}
|
||||
Hardware::reboot();
|
||||
params.putBool("SnoozeUpdate", true);
|
||||
params.putBool("DeviceManagement", true);
|
||||
params.putBool("OfflineMode", true);
|
||||
});
|
||||
QObject::connect(disable_check_btn, &QPushButton::clicked, this, &AbstractAlert::dismiss);
|
||||
disable_check_btn->setStyleSheet(R"(color: white; background-color: #4F4F4F;)");
|
||||
|
||||
Reference in New Issue
Block a user