ui: fix prime widget w/ no internet (#21767)

old-commit-hash: 54f1afe403
commatwo_master
sshane 4 years ago committed by GitHub
parent 28ddda3011
commit c10ed33d98
  1. 6
      selfdrive/ui/qt/widgets/prime.cc

@ -268,8 +268,10 @@ SetupWidget::SetupWidget(QWidget* parent) : QFrame(parent) {
void SetupWidget::parseError(const QString &response) {
show();
showQr = false;
mainLayout->setCurrentIndex(0);
if (mainLayout->currentIndex() == 1) {
showQr = false;
mainLayout->setCurrentIndex(0);
}
}
void SetupWidget::showQrCode() {

Loading…
Cancel
Save