diff --git a/src/AboutWidget.cpp b/src/AboutWidget.cpp index 30101d1f..7518cea8 100644 --- a/src/AboutWidget.cpp +++ b/src/AboutWidget.cpp @@ -48,7 +48,7 @@ AboutWidget::AboutWidget(Device *device, QWidget *parent) // Check if eth0 is active (/sys/class/net/eth0/carrier will output 1 if eth0 is active and 0 if it is not) QStringList arguments; - arguments << "/sys/class/net/eth0/carrier"; + arguments << "/sys/class/net/eno1/carrier"; QProcess *myProcess = new QProcess(parent); myProcess->start("cat", arguments); @@ -272,15 +272,16 @@ void AboutWidget::eventModeBackground(int checked) emit eventModeDisabled(); NetworkManager::ref().enableAP(); } - ui->toggleSwitch->setEnabled(true); - QTimer::singleShot(2000, this, [this]() { + + QTimer::singleShot(3000, this, [this]() + { if (msgBox) { msgBox->hide(); delete msgBox; msgBox = nullptr; } - }); + ui->toggleSwitch->setEnabled(true); }); } void AboutWidget::developerList()