mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +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.second = simulator;
|
||||
|
||||
//! \fixme KB 7/2017 wonder if it was better to force an Qt::QueuedConnection emit by calling CTimer::singleShot
|
||||
//! Replace this comment by an info comment after review, or change
|
||||
emit simulatorPluginChanged(simulatorPluginInfo);
|
||||
// Emit signal after this function completes
|
||||
QTimer::singleShot(0, this, [ = ]
|
||||
{
|
||||
emit this->simulatorPluginChanged(simulatorPluginInfo);
|
||||
});
|
||||
|
||||
CLogMessage(this).info("Simulator plugin loaded: '%1' connected: %2")
|
||||
<< simulatorPluginInfo.toQString(true)
|
||||
<< boolToYesNo(connected);
|
||||
|
||||
Reference in New Issue
Block a user