match style

old-commit-hash: 2b611862be
vw-mqb-aeb
Kurt Nistelberger 2 years ago
parent e142178284
commit 95f4709f7d
  1. 6
      selfdrive/ui/qt/maps/map.cc
  2. 2
      selfdrive/ui/qt/maps/map.h

@ -237,7 +237,7 @@ void MapWindow::updateState(const UIState &s) {
m_map->setLayoutProperty("navLayer", "visibility", "visible"); m_map->setLayoutProperty("navLayer", "visibility", "visible");
route_rcv_frame = sm.rcv_frame("navRoute"); route_rcv_frame = sm.rcv_frame("navRoute");
update_destination_marker(); updateDestinationMarker();
} }
} }
@ -275,7 +275,7 @@ void MapWindow::clearRoute() {
if (!m_map.isNull()) { if (!m_map.isNull()) {
m_map->setLayoutProperty("navLayer", "visibility", "none"); m_map->setLayoutProperty("navLayer", "visibility", "none");
m_map->setPitch(MIN_PITCH); m_map->setPitch(MIN_PITCH);
update_destination_marker(); updateDestinationMarker();
} }
map_instructions->hideIfNoError(); map_instructions->hideIfNoError();
@ -363,7 +363,7 @@ void MapWindow::offroadTransition(bool offroad) {
last_bearing = {}; last_bearing = {};
} }
void MapWindow::update_destination_marker() { void MapWindow::updateDestinationMarker() {
if (marker_id != -1) { if (marker_id != -1) {
m_map->removeAnnotation(marker_id); m_map->removeAnnotation(marker_id);
marker_id = -1; marker_id = -1;

@ -112,7 +112,7 @@ private:
MapETA* map_eta; MapETA* map_eta;
void clearRoute(); void clearRoute();
void update_destination_marker(); void updateDestinationMarker();
uint64_t route_rcv_frame = 0; uint64_t route_rcv_frame = 0;
private slots: private slots:

Loading…
Cancel
Save