Issue #17 Fix aircraft labels setting not being updated in xswiftbus

Also related tidying up.
This commit is contained in:
Mat Sutcliffe
2020-08-13 14:32:06 +01:00
parent f114171083
commit e710c777ab
5 changed files with 5 additions and 35 deletions

View File

@@ -34,6 +34,7 @@ namespace XSwiftBus
//! Register the draw callback.
void show()
{
if (m_visible) { return; }
m_visible = true;
XPLMRegisterDrawCallback(callback, m_phase, m_before, static_cast<void*>(this));
}
@@ -41,6 +42,7 @@ namespace XSwiftBus
//! Unregister the draw callback.
void hide()
{
if (!m_visible) { return; }
m_visible = false;
XPLMUnregisterDrawCallback(callback, m_phase, m_before, static_cast<void*>(this));
}