mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-23 15:02:06 +08:00
setup: fix button label on ethernet (#27235)
* setup: continue without wi-fi on ethernet * switch around
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