mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
Ref T111, some fixes in the vicinity of plugin / drivers
* mostly style / doxygen / formatting * assert/verify
This commit is contained in:
committed by
Mathew Sutcliffe
parent
e72546d282
commit
29e1d54e05
@@ -59,12 +59,17 @@ namespace BlackCore
|
||||
ISimulator::registerHelp();
|
||||
}
|
||||
|
||||
void ISimulator::emitSimulatorCombinedStatus(int oldStatus)
|
||||
void ISimulator::emitSimulatorCombinedStatus(SimulatorStatus oldStatus)
|
||||
{
|
||||
int newStatus = getSimulatorStatus();
|
||||
const SimulatorStatus newStatus = getSimulatorStatus();
|
||||
if (oldStatus != newStatus)
|
||||
{
|
||||
emit simulatorStatusChanged(newStatus);
|
||||
// decouple, follow up of signal can include unloading
|
||||
// simulator so this should happen asyncronously (which is like forcing Qt::QueuedConnection)
|
||||
QTimer::singleShot(0, this, [ = ]
|
||||
{
|
||||
emit this->simulatorStatusChanged(newStatus);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user