network_panel: fix ButtonControl build on EON (#21327)

pull/21335/head
Dean Lee 4 years ago committed by GitHub
parent d90d9b2280
commit eb9736fbb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      selfdrive/ui/qt/offroad/settings.cc

@ -270,12 +270,14 @@ QWidget * network_panel(QWidget * parent) {
layout->setSpacing(30);
// wifi + tethering buttons
layout->addWidget(new ButtonControl("WiFi Settings", "OPEN", "",
[=]() { HardwareEon::launch_wifi(); }));
auto wifiBtn = new ButtonControl("WiFi Settings", "OPEN");
QObject::connect(wifiBtn, &ButtonControl::released, [=]() { HardwareEon::launch_wifi(); });
layout->addWidget(wifiBtn);
layout->addWidget(horizontal_line());
layout->addWidget(new ButtonControl("Tethering Settings", "OPEN", "",
[=]() { HardwareEon::launch_tethering(); }));
auto tetheringBtn = new ButtonControl("Tethering Settings", "OPEN");
QObject::connect(tetheringBtn, &ButtonControl::released, [=]() { HardwareEon::launch_tethering(); });
layout->addWidget(tetheringBtn);
layout->addWidget(horizontal_line());
// SSH key management

Loading…
Cancel
Save