pull/29034/head
Shane Smiskol 2 years ago
parent a28ccf851e
commit f1a4d8ae88
  1. 5
      selfdrive/ui/qt/maps/map_instructions.cc

@ -85,6 +85,8 @@ void MapInstructions::updateInstructions(cereal::NavInstruction::Reader instruct
primary->setText(primary_str);
secondary->setVisible(secondary_str.length() > 0);
secondary->setText(secondary_str);
// Hide distance after arrival
distance->setVisible(type != "arrive" || instruction.getManeuverDistance() > 0);
distance->setText(getDistance(instruction.getManeuverDistance()));
// Show arrow with direction
@ -102,9 +104,6 @@ void MapInstructions::updateInstructions(cereal::NavInstruction::Reader instruct
icon_01->setVisible(true);
}
// Hide distance after arrival
distance->setVisible(type != "arrive" || instruction.getManeuverDistance() > 0);
// Show lanes
auto lanes = instruction.getLanes();
for (int i = 0; i < lanes.size(); ++i) {

Loading…
Cancel
Save