    refresh(); // don't wait for the first refresh
  }
  
  void PairingQRWidget::refresh(){
    QString IMEI = QString::fromStdString(Params().get("IMEI"));
    QString serial = QString::fromStdString(Params().get("HardwareSerial"));
  
    if (std::min(IMEI.length(), serial.length()) <= 5) {
      qrCode->setText("Error getting serial: contact support");
      qrCode->setWordWrap(true);
      qrCode->setStyleSheet(R"(font-size: 60px;)");
 
</s> remove   refresh(); // don't wait for the first refresh
 </s> add }

void PairingQRWidget::showEvent(QShowEvent *event){
  refresh(); </s> remove   QString param = QString::fromStdString(Params().get("GithubSshKeys"));
 </s> add   QString param = QString::fromStdString(params.get("GithubSshKeys")); </s> remove     username_label.setText(QString::fromStdString(Params().get("GithubUsername")));
 </s> add     username_label.setText(QString::fromStdString(params.get("GithubUsername"))); </s> remove   // setup labels for each alert
  QString json = QString::fromStdString(util::read_file("../controls/lib/alerts_offroad.json"));
  QJsonObject obj = QJsonDocument::fromJson(json.toUtf8()).object();
  for (auto &k : obj.keys()) {
    QLabel *l = new QLabel(this);
    alerts[k.toStdString()] = l;
    int severity = obj[k].toObject()["severity"].toInt();

    l->setMargin(60);
    l->setWordWrap(true);
    l->setStyleSheet("background-color: " + QString(severity ? "#E22C2C" : "#292929"));
    l->setVisible(false);
    alerts_layout->addWidget(l);
  }

  alerts_layout->addStretch(1);

 </s> add  </s> remove   refresh();
 </s> add 
  Params params;
  QString IMEI = QString::fromStdString(params.get("IMEI"));
  QString serial = QString::fromStdString(params.get("HardwareSerial"));
    refresh(); // don't wait for the first refresh
  }
  
  void PairingQRWidget::refresh(){
  Params params;
  QString IMEI = QString::fromStdString(params.get("IMEI"));
  QString serial = QString::fromStdString(params.get("HardwareSerial"));
  Params params;
  QString IMEI = QString::fromStdString(params.get("IMEI"));
  QString serial = QString::fromStdString(params.get("HardwareSerial"));
  
    if (std::min(IMEI.length(), serial.length()) <= 5) {
      qrCode->setText("Error getting serial: contact support");
      qrCode->setWordWrap(true);
      qrCode->setStyleSheet(R"(font-size: 60px;)");
keep keep keep keep replace replace keep keep keep keep keep
 UI: fast startup (#20781)

* faster startup

* faster

* cleanup

Co-authored-by: Comma Device <device@comma.ai> 
selfdrive/ui/qt/widgets/setup.cc