From 47897309177e7e179064d20e9b2130ee494bc0c8 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Fri, 31 May 2024 22:27:44 -0400 Subject: [PATCH] Revert "oops" This reverts commit 30fe43bf019e4d5367a81a168a510121ba159092. --- selfdrive/ui/qt/text.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/selfdrive/ui/qt/text.cc b/selfdrive/ui/qt/text.cc index 81171af1b1..08d3964030 100644 --- a/selfdrive/ui/qt/text.cc +++ b/selfdrive/ui/qt/text.cc @@ -36,7 +36,7 @@ int main(int argc, char *argv[]) { QPushButton *btn = new QPushButton(); QPushButton *update_btn = new QPushButton(); update_btn->setText(QObject::tr("Update")); -#ifdef __aarch64__ +//#ifdef __aarch64__ btn->setText(QObject::tr("Reboot")); QFutureWatcher watcher; QObject::connect(btn, &QPushButton::clicked, [=]() { @@ -68,11 +68,11 @@ int main(int argc, char *argv[]) { }); watcher.setFuture(future); }); -#else +//#else update_btn->setEnabled(false); btn->setText(QObject::tr("Exit")); QObject::connect(btn, &QPushButton::clicked, &a, &QApplication::quit); -#endif +//#endif main_layout->addWidget(btn, 0, 0, Qt::AlignRight | Qt::AlignBottom); main_layout->addWidget(update_btn, 0, 0, Qt::AlignLeft | Qt::AlignBottom);