mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-09 07:32:06 +08:00
nav: update favorites/recents while onroad
old-commit-hash: 94f85c615cff5177b29bbac8abb7da06af460d10
This commit is contained in:
@@ -98,7 +98,7 @@ MapPanel::MapPanel(QWidget* parent) : QWidget(parent) {
|
||||
// Fetch favorite and recent 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::failedResponse, this, &MapPanel::failedResponse);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user