mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 12:55:31 +08:00
refs #450 A better place for GUI to receive all current core settings upon establishing a connection to core.
This commit is contained in:
@@ -301,6 +301,8 @@ void SwiftGuiStd::ps_handleTimerBasedUpdates()
|
||||
|
||||
void SwiftGuiStd::setContextAvailability()
|
||||
{
|
||||
bool corePreviouslyAvailable = this->m_coreAvailable;
|
||||
|
||||
if (this->getIContextApplication()->isUsingImplementingObject())
|
||||
{
|
||||
this->m_coreAvailable = true;
|
||||
@@ -311,6 +313,20 @@ void SwiftGuiStd::setContextAvailability()
|
||||
}
|
||||
this->m_contextNetworkAvailable = this->m_coreAvailable || this->getIContextNetwork()->isUsingImplementingObject();
|
||||
this->m_contextAudioAvailable = this->m_coreAvailable || this->getIContextAudio()->isUsingImplementingObject();
|
||||
|
||||
// react to a change in core's availability
|
||||
if (this->m_coreAvailable != corePreviouslyAvailable)
|
||||
{
|
||||
if (this->m_coreAvailable)
|
||||
{
|
||||
// core has just become available
|
||||
this->getIContextApplication()->synchronizeLocalSettings();
|
||||
}
|
||||
else
|
||||
{
|
||||
// core has just become unavailable...
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void SwiftGuiStd::updateGuiStatusInformation()
|
||||
|
||||
Reference in New Issue
Block a user