mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-19 12:15:29 +08:00
Issue #17 Fix aircraft labels setting not being updated in xswiftbus
Also related tidying up.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user