    emit closeKeyboard();
  }
  
  void Networking::wrongPassword(QString ssid) {
    if(s->currentIndex()==0){
      qDebug()<<"Wrong password, but we are already trying a new network";
      return;
    }
    if(s->currentIndex()==2){
      qDebug()<<"Wrong password, but we are in advanced settings";
      return;
    }
    if(!this->isVisible()){
      qDebug()<<"Wrong password, but we are not visible";
      return;
  
    }
    for (Network n : wifi->seen_networks) {
      if (n.ssid == ssid) {
        inputField->setPromptText("Wrong password for \"" + n.ssid +"\"");
        s->setCurrentIndex(0);
        emit openKeyboard();
 
</s> remove void Networking::abortTextInput(){
  s->setCurrentIndex(1);
    emit closeKeyboard();
}

void Networking::receiveText(QString text) {
  wifi->disconnect();
  wifi->connect(selectedNetwork, text);
  s->setCurrentIndex(1);
  emit closeKeyboard();
}

 </s> add  </s> remove }

void Networking::successfulConnection(QString ssid) {
  //Maybe we will want to do something here in the future.
}

void Networking::sidebarChange(){
  if (s == nullptr || an == nullptr){
    return;
  }

  s->setCurrentIndex(1);
  an->s->setCurrentIndex(1);
  refresh();
 </s> add   */ </s> remove     inputField->setPromptText("Enter password for \"" + n.ssid + "\"");
    s->setCurrentIndex(0);
    selectedNetwork = n;
    emit openKeyboard();
 </s> add     QString pass = InputDialog::getText("Enter password for \"" + n.ssid + "\"");
    wifi->connect(n, pass); </s> remove     if (i == 1) {
 </s> add     if (vlayout->count() == 1) {
  return; // TODO: add this back
  /*
    emit closeKeyboard();
  }
  
  void Networking::wrongPassword(QString ssid) {
  return; // TODO: add this back
  /*
  return; // TODO: add this back
  /*
  return; // TODO: add this back
  /*
  return; // TODO: add this back
  /*
  return; // TODO: add this back
  /*
  return; // TODO: add this back
  /*
  return; // TODO: add this back
  /*
  return; // TODO: add this back
  /*
  return; // TODO: add this back
  /*
  return; // TODO: add this back
  /*
  return; // TODO: add this back
  /*
  return; // TODO: add this back
  /*
  return; // TODO: add this back
  /*
    for (Network n : wifi->seen_networks) {
      if (n.ssid == ssid) {
        inputField->setPromptText("Wrong password for \"" + n.ssid +"\"");
        s->setCurrentIndex(0);
        emit openKeyboard();
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 Qt UI refactoring + improvements (#20033) 
selfdrive/ui/qt/offroad/networking.cc