mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
Formatting, renaming, Doxygen, minor UI adjustments
This commit is contained in:
committed by
Mathew Sutcliffe
parent
7ddb69825a
commit
68dccbefa6
@@ -309,12 +309,12 @@ namespace BlackSimPlugin
|
||||
void CSimulatorFsx::setSimConnected()
|
||||
{
|
||||
m_simConnected = true;
|
||||
this->initInternalsObject();
|
||||
this->initSimulatorInternals();
|
||||
emitSimulatorCombinedStatus();
|
||||
|
||||
// Internals depends on sim data which take a while to be read
|
||||
// this is a trich and I re-init again after a while (which is not really expensive)
|
||||
QTimer::singleShot(1000, this, [this] { this->initInternalsObject(); });
|
||||
QTimer::singleShot(1000, this, [this] { this->initSimulatorInternals(); });
|
||||
}
|
||||
|
||||
void CSimulatorFsx::onSimRunning()
|
||||
@@ -1081,9 +1081,9 @@ namespace BlackSimPlugin
|
||||
return false;
|
||||
}
|
||||
|
||||
void CSimulatorFsx::initInternalsObject()
|
||||
void CSimulatorFsx::initSimulatorInternals()
|
||||
{
|
||||
CSimulatorFsCommon::initInternalsObject();
|
||||
CSimulatorFsCommon::initSimulatorInternals();
|
||||
CSimulatorInternals s = this->m_simulatorInternals;
|
||||
const QString fsxPath = CFsCommonUtil::fsxDirFromRegistry(); // can be empty for remote FSX
|
||||
if (!fsxPath.isEmpty()) { s.setSimulatorInstallationDirectory(fsxPath); }
|
||||
|
||||
@@ -113,7 +113,7 @@ namespace BlackSimPlugin
|
||||
//! @{
|
||||
virtual void reset() override;
|
||||
virtual void clearAllAircraft() override;
|
||||
virtual void initInternalsObject() override;
|
||||
virtual void initSimulatorInternals() override;
|
||||
virtual void injectWeatherGrid(const BlackMisc::Weather::CWeatherGrid &weatherGrid) override;
|
||||
//! @}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user