setup: fix button label on ethernet (#27235)

* setup: continue without wi-fi on ethernet

* switch around
pull/27228/head^2
Cameron Clough 2 years ago committed by GitHub
parent 68bcdaaff7
commit 9a51275cd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      selfdrive/ui/qt/setup/setup.cc

@ -178,8 +178,8 @@ QWidget * Setup::network_setup() {
QObject::connect(request, &HttpRequest::requestDone, [=](const QString &, bool success) {
cont->setEnabled(success);
if (success) {
const bool cell = networking->wifi->currentNetworkType() == NetworkType::CELL;
cont->setText(cell ? tr("Continue without Wi-Fi") : tr("Continue"));
const bool wifi = networking->wifi->currentNetworkType() == NetworkType::WIFI;
cont->setText(wifi ? tr("Continue") : tr("Continue without Wi-Fi"));
} else {
cont->setText(tr("Waiting for internet"));
}

Loading…
Cancel
Save