From a50a9ef9b4c91e5fc8a0308e2ad8b12daa9add5f Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Thu, 17 Aug 2023 17:05:19 +0800 Subject: [PATCH] ui/map: hide icon if no maneuver type (#29084) hide icon if no maneuver type old-commit-hash: 202b2f2113d48f517c64f0daf9ad2d61fdb0b7a6 --- selfdrive/ui/qt/maps/map_instructions.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/selfdrive/ui/qt/maps/map_instructions.cc b/selfdrive/ui/qt/maps/map_instructions.cc index 865f03f6c0..5910fe8143 100644 --- a/selfdrive/ui/qt/maps/map_instructions.cc +++ b/selfdrive/ui/qt/maps/map_instructions.cc @@ -100,6 +100,8 @@ void MapInstructions::updateInstructions(cereal::NavInstruction::Reader instruct icon_01->setPixmap(pixmap_cache[!rhd ? fn : "rhd_" + fn]); icon_01->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed)); icon_01->setVisible(true); + } else { + icon_01->setVisible(false); } // Hide distance after arrival