aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/webassembly/webassemblyplugin.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/webassembly/webassemblyplugin.cpp b/src/plugins/webassembly/webassemblyplugin.cpp
index 97b4ca4ebc..497efeb722 100644
--- a/src/plugins/webassembly/webassemblyplugin.cpp
+++ b/src/plugins/webassembly/webassemblyplugin.cpp
@@ -35,6 +35,7 @@
#include <coreplugin/icore.h>
#include <projectexplorer/devicesupport/devicemanager.h>
+#include <projectexplorer/kitmanager.h>
using namespace ProjectExplorer;
@@ -80,7 +81,9 @@ bool WebAssemblyPlugin::initialize(const QStringList& arguments, QString* errorS
void WebAssemblyPlugin::extensionsInitialized()
{
- ProjectExplorer::DeviceManager::instance()->addDevice(WebAssemblyDevice::create());
+ connect(KitManager::instance(), &KitManager::kitsLoaded, this, [] {
+ DeviceManager::instance()->addDevice(WebAssemblyDevice::create());
+ });
}
} // namespace Internal