diff options
author | hjk <hjk@qt.io> | 2023-04-17 10:12:53 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2023-04-17 16:08:42 +0000 |
commit | cacc4aeede245ddc92a196e99fb1e66458d4403c (patch) | |
tree | a6858c25bd4da906dcddb89e4779bb5e085b47bf /src/plugins/webassembly | |
parent | 3b76420e0f5055e55d24dd51d1f88a880392982c (diff) |
ProjectExplorer: Run toolchain autodetection on startup
... explicitly only for the Desktop device. This was implicitly done in
some cases by assuming 'no device' == 'desktop'. Make that explicit now.
Change-Id: I2ce86702a9b5b795fb4832301a11a8c8b40e77ea
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/webassembly')
-rw-r--r-- | src/plugins/webassembly/webassemblytoolchain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/webassembly/webassemblytoolchain.cpp b/src/plugins/webassembly/webassemblytoolchain.cpp index e38b00dac6..4ee3eff591 100644 --- a/src/plugins/webassembly/webassemblytoolchain.cpp +++ b/src/plugins/webassembly/webassemblytoolchain.cpp @@ -96,7 +96,7 @@ static Toolchains doAutoDetect(const ToolchainDetector &detector) if (!WebAssemblyEmSdk::isValid(sdk)) return {}; - if (detector.device) { + if (detector.device->type() != ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE) { // Only detect toolchains from the emsdk installation device const FilePath deviceRoot = detector.device->rootPath(); if (deviceRoot.host() != sdk.host()) |