mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-04 15:56:08 +08:00
Add label if no network manager is found (#2718)
This commit is contained in:
@@ -24,6 +24,12 @@ WifiUI::WifiUI(QWidget *parent, int page_length) : QWidget(parent), networks_per
|
||||
try {
|
||||
wifi = new WifiManager;
|
||||
} catch (std::exception &e) {
|
||||
QLabel* warning = new QLabel("Network manager is inactive!");
|
||||
warning->setStyleSheet(R"(font-size: 65px;)");
|
||||
|
||||
QVBoxLayout* warning_layout = new QVBoxLayout;
|
||||
warning_layout->addWidget(warning, 0, Qt::AlignCenter);
|
||||
setLayout(warning_layout);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user