nav: update favorites/recents while onroad

pull/21746/head
Willem Melching 4 years ago
parent 0425a33400
commit 94f85c615c
  1. 2
      selfdrive/ui/qt/maps/map_settings.cc

@ -98,7 +98,7 @@ MapPanel::MapPanel(QWidget* parent) : QWidget(parent) {
// Fetch favorite and recent locations // Fetch favorite and recent locations
{ {
std::string url = "https://api.commadotai.com/v1/navigation/" + dongle_id + "/locations"; std::string url = "https://api.commadotai.com/v1/navigation/" + dongle_id + "/locations";
RequestRepeater* repeater = new RequestRepeater(this, QString::fromStdString(url), "ApiCache_NavDestinations", 30); RequestRepeater* repeater = new RequestRepeater(this, QString::fromStdString(url), "ApiCache_NavDestinations", 30, true);
QObject::connect(repeater, &RequestRepeater::receivedResponse, this, &MapPanel::parseResponse); QObject::connect(repeater, &RequestRepeater::receivedResponse, this, &MapPanel::parseResponse);
QObject::connect(repeater, &RequestRepeater::failedResponse, this, &MapPanel::failedResponse); QObject::connect(repeater, &RequestRepeater::failedResponse, this, &MapPanel::failedResponse);
} }

Loading…
Cancel
Save