    }
    if (toggle_switch_SSH->on != isSSHEnabled()) {
      toggle_switch_SSH->togglePosition();
    }
    //Qt can be lazy
    repaint();
  }
  
  void AdvancedNetworking::toggleTethering(int enable) {
    if (enable) {
 
</s> remove     std::array<char, 128> buffer;
    std::string result;
    std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(cmd, "r"), pclose);
    if (!pipe) {
        throw std::runtime_error("popen() failed!");
    }
    while (fgets(buffer.data(), buffer.size(), pipe.get()) != nullptr) {
        result += buffer.data();
    }
    return result;
 </s> add   std::array<char, 128> buffer;
  std::string result;
  std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(cmd, "r"), pclose);
  if (!pipe) {
    throw std::runtime_error("popen() failed!");
  }
  while (fgets(buffer.data(), buffer.size(), pipe.get()) != nullptr) {
    result += buffer.data();
  }
  return result; </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 }

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 
void SettingsWindow::closeSidebar() {
  sidebar_widget->setFixedWidth(0);
}

void SettingsWindow::openSidebar() {
  sidebar_widget->setFixedWidth(500);
}
 </s> add  </s> remove     if (i == 1) {
 </s> add     if (vlayout->count() == 1) {
  // Qt can be lazy
    }
    if (toggle_switch_SSH->on != isSSHEnabled()) {
      toggle_switch_SSH->togglePosition();
    }
  // Qt can be lazy
    repaint();
  }
  
  void AdvancedNetworking::toggleTethering(int enable) {
    if (enable) {
keep keep keep keep replace keep keep keep keep keep
 Qt UI refactoring + improvements (#20033) 
selfdrive/ui/qt/offroad/networking.cc