Ref T773, improved start/stop in log.display

This commit is contained in:
Klaus Basan
2020-02-12 22:54:55 +01:00
committed by Mat Sutcliffe
parent 1d9fd71305
commit c57ed26880

View File

@@ -271,8 +271,16 @@ namespace BlackGui
void CInterpolationLogDisplay::toggleStartStop() void CInterpolationLogDisplay::toggleStartStop()
{ {
const bool running = m_updateTimer.isActive(); const bool running = m_updateTimer.isActive();
if (running) { this->stop(); } m_callsign.clear(); // force update of data and log. start/stop
else { this->start(); } if (running)
{
this->stop();
}
else
{
// treat like a callsign was entered
this->onCallsignEntered();
}
} }
void CInterpolationLogDisplay::showLogInSimulator() void CInterpolationLogDisplay::showLogInSimulator()