mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 08:45:36 +08:00
Ref T111, emit signal simulatorPluginChanged after function completes
This commit is contained in:
committed by
Mathew Sutcliffe
parent
4a9ab8c3d7
commit
c066ffcd28
@@ -314,9 +314,12 @@ namespace BlackCore
|
|||||||
m_simulatorPlugin.first = simulatorPluginInfo;
|
m_simulatorPlugin.first = simulatorPluginInfo;
|
||||||
m_simulatorPlugin.second = simulator;
|
m_simulatorPlugin.second = simulator;
|
||||||
|
|
||||||
//! \fixme KB 7/2017 wonder if it was better to force an Qt::QueuedConnection emit by calling CTimer::singleShot
|
// Emit signal after this function completes
|
||||||
//! Replace this comment by an info comment after review, or change
|
QTimer::singleShot(0, this, [ = ]
|
||||||
emit simulatorPluginChanged(simulatorPluginInfo);
|
{
|
||||||
|
emit this->simulatorPluginChanged(simulatorPluginInfo);
|
||||||
|
});
|
||||||
|
|
||||||
CLogMessage(this).info("Simulator plugin loaded: '%1' connected: %2")
|
CLogMessage(this).info("Simulator plugin loaded: '%1' connected: %2")
|
||||||
<< simulatorPluginInfo.toQString(true)
|
<< simulatorPluginInfo.toQString(true)
|
||||||
<< boolToYesNo(connected);
|
<< boolToYesNo(connected);
|
||||||
|
|||||||
Reference in New Issue
Block a user