mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-29 10:32:10 +08:00
setup: fix button label on ethernet (#27235)
* setup: continue without wi-fi on ethernet * switch around old-commit-hash: 9a51275cd246bcbf53da764495a944af8a0b51bd
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user