network_panel: fix ButtonControl build on EON (#21327)

old-commit-hash: eb9736fbb0
commatwo_master
Dean Lee 4 years ago committed by GitHub
parent 28a9781c51
commit 5bf08251d7
  1. 10
      selfdrive/ui/qt/offroad/settings.cc

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

Loading…
Cancel
Save