diff options
author | Eike Ziller <eike.ziller@qt.io> | 2021-05-18 14:32:26 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2021-05-19 07:41:24 +0000 |
commit | 801dbdf9324a67462eb6756f4ea49b31ae2074bb (patch) | |
tree | 4f8db8bb8fef6d54f25ff52d11f00a9d77bf5474 /src/plugins/projectexplorer | |
parent | 2c2a3a9bef9652a6de7213ca88a7c3de72f20e2b (diff) | |
download | qt-creator-801dbdf9324a67462eb6756f4ea49b31ae2074bb.tar.gz |
Android/Qbs: Improve startup time
At startup the Android plugin looks at the NDK(s) for tool chains, and
the for matching tool chains already registered in Qt Creator. If it
finds one, it doesn't register a new one, but simply force-marks the
found one as auto-detected.
(See AndroidToolChainFactory::autodetectToolChainsFromNdks)
Unfortunately changing the auto-detected property of a tool chain
triggers a full update down the line, which for example Qbs takes as a
hint to re-create profiles.
This simply doesn't make sense. Setting the auto-detection flag
shouldn't result in these updates.
Task-number: QTCREATORBUG-25463
Change-Id: I22a5f6fbe08124a08041bf871e683bdbda279c01
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer')
-rw-r--r-- | src/plugins/projectexplorer/toolchain.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/plugins/projectexplorer/toolchain.cpp b/src/plugins/projectexplorer/toolchain.cpp index 69355e4413..2427a2d4dd 100644 --- a/src/plugins/projectexplorer/toolchain.cpp +++ b/src/plugins/projectexplorer/toolchain.cpp @@ -280,14 +280,7 @@ void ToolChain::toolChainUpdated() void ToolChain::setDetection(ToolChain::Detection de) { - if (d->m_detection == de) - return; - if (d->m_detection == ToolChain::UninitializedDetection) { - d->m_detection = de; - } else { - d->m_detection = de; - toolChainUpdated(); - } + d->m_detection = de; } QString ToolChain::typeDisplayName() const |