AppManager: Get rid of dummy worker

Change-Id: I661e9091893cf7e3038f8c850885924ff9c0b6c0
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2025-01-09 12:55:54 +01:00
parent f72c94b748
commit 41acdd526b

View File

@@ -256,21 +256,13 @@ public:
AppManagerQmlToolingWorkerFactory()
{
setProducer([](RunControl *runControl) {
auto worker = new RunWorker(runControl);
worker->setId("AppManagerQmlToolingSupport");
runControl->requestQmlChannel();
QmlDebugServicesPreset services = servicesForRunMode(runControl->runMode());
auto runner = createInferiorRunner(runControl, services);
worker->addStartDependency(runner);
worker->addStopDependency(runner);
auto worker = createInferiorRunner(runControl, servicesForRunMode(runControl->runMode()));
auto extraWorker = runControl->createWorker(runnerIdForRunMode(runControl->runMode()));
extraWorker->addStartDependency(worker);
worker->addStopDependency(extraWorker);
// Make sure the QML Profiler is stopped before the appman-controller
runner->addStopDependency(extraWorker);
worker->addStopDependency(extraWorker);
return worker;
});
addSupportedRunMode(ProjectExplorer::Constants::QML_PROFILER_RUN_MODE);