Qnx: Further delay configuration restoring

For toolchains-on-device scenarios we need the devices.

Change-Id: I83547b8c342c87c1c83ed432432f8d151d7e3f1d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2023-02-27 17:16:21 +01:00
parent cace5a57f2
commit 824ae57fd9

View File

@@ -21,6 +21,7 @@
#include <extensionsystem/iplugin.h> #include <extensionsystem/iplugin.h>
#include <projectexplorer/devicesupport/devicecheckbuildstep.h> #include <projectexplorer/devicesupport/devicecheckbuildstep.h>
#include <projectexplorer/devicesupport/devicemanager.h>
#include <projectexplorer/deployconfiguration.h> #include <projectexplorer/deployconfiguration.h>
#include <projectexplorer/kitinformation.h> #include <projectexplorer/kitinformation.h>
#include <projectexplorer/projectexplorer.h> #include <projectexplorer/projectexplorer.h>
@@ -122,8 +123,9 @@ private:
void QnxPlugin::extensionsInitialized() void QnxPlugin::extensionsInitialized()
{ {
// Can't do in init as not all devices are around. // Can't do yet as not all devices are around.
d->configurationManager.restoreConfigurations(); connect(DeviceManager::instance(), &DeviceManager::devicesLoaded,
&d->configurationManager, &QnxConfigurationManager::restoreConfigurations);
// Attach support // Attach support
connect(&d->m_attachToQnxApplication, &QAction::triggered, this, &showAttachToProcessDialog); connect(&d->m_attachToQnxApplication, &QAction::triggered, this, &showAttachToProcessDialog);