Ios: Fix synchronization

This fixes the synchronization on early shutdown, e.g. when
Creator is started with "-test Ios".

Change-Id: Ia18215a090809b6095d51ee3647728b4b2ad2d5f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Jarek Kobus
2023-10-19 15:12:34 +02:00
parent 24ed69b2ec
commit b706fab6c6

View File

@@ -12,6 +12,8 @@
#include <coreplugin/icore.h>
#include <extensionsystem/pluginmanager.h>
#include <projectexplorer/kitaspects.h>
#include <projectexplorer/kitmanager.h>
#include <projectexplorer/devicesupport/devicemanager.h>
@@ -31,6 +33,7 @@
#include <qtsupport/qtversionfactory.h>
#include <utils/algorithm.h>
#include <utils/futuresynchronizer.h>
#include <utils/process.h>
#include <utils/qtcassert.h>
@@ -405,7 +408,8 @@ void IosConfigurations::updateSimulators()
dev = IDevice::ConstPtr(new IosSimulator(devId));
devManager->addDevice(dev);
}
SimulatorControl::updateAvailableSimulators(this);
ExtensionSystem::PluginManager::futureSynchronizer()->addFuture(
SimulatorControl::updateAvailableSimulators(this));
}
void IosConfigurations::setDeveloperPath(const FilePath &devPath)