mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-20 21:42:05 +08:00
network_panel: fix ButtonControl build on EON (#21327)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user