mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
Ref T397, fixed "disable" for fast positions
This commit is contained in:
@@ -125,7 +125,17 @@ namespace BlackCore
|
||||
QTimer::singleShot(0, m_network, [ = ]
|
||||
{
|
||||
if (!myself) { return; }
|
||||
if (m_network) { m_network->addInterimPositionReceiver(callsign); }
|
||||
if (m_network)
|
||||
{
|
||||
if (enableFastPositonUpdates)
|
||||
{
|
||||
m_network->addInterimPositionReceiver(callsign);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_network->removeInterimPositionReceiver(callsign);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
return r;
|
||||
|
||||
Reference in New Issue
Block a user