  
  void MapPanel::showEvent(QShowEvent *event) {
    updateCurrentRoute();
  }
  
  void MapPanel::clear() {
    home_button->setIcon(QPixmap("../assets/navigation/home_inactive.png"));
    home_address->setStyleSheet(R"(font-size: 50px; color: grey;)");
 
</s> remove   stack->setCurrentIndex((uiState()->prime_type || success) ? 0 : 1);
 </s> add   if (!success) return; </s> remove   if (!success) {
    return;
 </s> add   cur_destinations = response;
  if (isVisible()) {
    refresh();
  refresh();
  
  void MapPanel::showEvent(QShowEvent *event) {
    updateCurrentRoute();
  refresh();
  }
  
  void MapPanel::clear() {
    home_button->setIcon(QPixmap("../assets/navigation/home_inactive.png"));
    home_address->setStyleSheet(R"(font-size: 50px; color: grey;)");
keep keep add keep keep keep keep keep
 MapPanel: refresh only when visible and destination changes (#25739)

rebuild widgets only when mappanel is visible 
selfdrive/ui/qt/maps/map_settings.cc