ProjectExplorer: reduce the perceived startup time

... by moving restoreKits to the delayed initialize phase.

Change-Id: If72e41b64ee71f2917b3f7a317d9887afc6e29e8
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
David Schulz
2023-09-11 08:58:51 +02:00
parent f1fa1ad3d9
commit 0b85fc5aa0
13 changed files with 103 additions and 26 deletions

View File

@@ -1316,6 +1316,9 @@ static Kit *guessKitFromAbis(const Abis &abis)
{
Kit *kit = nullptr;
if (!KitManager::waitForLoaded())
return kit;
// Try to find a kit via ABI.
if (!abis.isEmpty()) {
// Try exact abis.
@@ -1376,9 +1379,11 @@ bool DebuggerPluginPrivate::parseArgument(QStringList::const_iterator &it,
return false;
}
} else if (key == "kit") {
kit = KitManager::kit(Id::fromString(val));
if (!kit)
kit = KitManager::kit(Utils::equal(&Kit::displayName, val));
if (KitManager::waitForLoaded()) {
kit = KitManager::kit(Id::fromString(val));
if (!kit)
kit = KitManager::kit(Utils::equal(&Kit::displayName, val));
}
} else if (key == "server") {
startMode = AttachToRemoteServer;
remoteChannel = val;