mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
refs #814, fixed wrong default values for update times causing CPU overload
* use 10s as conservative default value * check in assert if update time is correct
This commit is contained in:
@@ -310,7 +310,8 @@ namespace BlackGui
|
||||
void CAtcStationComponent::ps_settingsChanged()
|
||||
{
|
||||
const CViewUpdateSettings settings = this->m_settings.get();
|
||||
this->m_updateTimer.setInterval(settings.getAtcUpdateTime().toMs());
|
||||
const int ms = settings.getAtcUpdateTime().toMs();
|
||||
this->m_updateTimer.setInterval(ms);
|
||||
}
|
||||
|
||||
void CAtcStationComponent::ps_airportsRead()
|
||||
|
||||
Reference in New Issue
Block a user