setup: fix button label on ethernet (#27235)

* setup: continue without wi-fi on ethernet

* switch around
old-commit-hash: 9a51275cd2
beeps
Cameron Clough 3 years ago committed by GitHub
parent 44e1bf9fbf
commit 3f75cdb6e3
  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