mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-31 01:53:46 +00:00
[traff_assessment_tool] Basic traffic message panel
Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
@@ -170,6 +170,11 @@ void TrafficManager::Clear()
|
||||
OnTrafficDataUpdate();
|
||||
}
|
||||
|
||||
void TrafficManager::SetTrafficUpdateCallbackFn(TrafficUpdateCallbackFn && fn)
|
||||
{
|
||||
m_trafficUpdateCallbackFn = std::move(fn);
|
||||
}
|
||||
|
||||
void TrafficManager::SetDrapeEngine(ref_ptr<df::DrapeEngine> engine)
|
||||
{
|
||||
m_drapeEngine.Set(engine);
|
||||
@@ -815,6 +820,9 @@ void TrafficManager::OnTrafficDataUpdate()
|
||||
m_lastStorageUpdate = steady_clock::now();
|
||||
}
|
||||
|
||||
if (m_trafficUpdateCallbackFn)
|
||||
m_trafficUpdateCallbackFn.value()(feedQueueEmpty);
|
||||
|
||||
if (!notifyDrape && !notifyObserver)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user