forked from qt-creator/qt-creator
iOS: Move updateAutomaticKitList() trigger closer to its user
This removes the IosPlugin::kitsRestored() member that does not fully fit the standard plugin implementation pattern. Change-Id: Iedd79e5326b85b189673c19e1920e21c34cd03bb Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -42,13 +42,10 @@
|
||||
|
||||
#include <projectexplorer/deployconfiguration.h>
|
||||
#include <projectexplorer/devicesupport/devicemanager.h>
|
||||
#include <projectexplorer/kitmanager.h>
|
||||
#include <projectexplorer/runconfiguration.h>
|
||||
|
||||
#include <qmakeprojectmanager/qmakeprojectmanagerconstants.h>
|
||||
|
||||
#include <qtsupport/qtversionmanager.h>
|
||||
|
||||
using namespace ProjectExplorer;
|
||||
using namespace QtSupport;
|
||||
|
||||
@@ -127,20 +124,8 @@ bool IosPlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
||||
RunControl::registerWorker<Internal::IosQmlProfilerSupport>
|
||||
(ProjectExplorer::Constants::QML_PROFILER_RUN_MODE, constraint);
|
||||
|
||||
connect(KitManager::instance(), &KitManager::kitsLoaded,
|
||||
this, &IosPlugin::kitsRestored);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void IosPlugin::kitsRestored()
|
||||
{
|
||||
disconnect(KitManager::instance(), &KitManager::kitsLoaded,
|
||||
this, &IosPlugin::kitsRestored);
|
||||
IosConfigurations::updateAutomaticKitList();
|
||||
connect(QtVersionManager::instance(), &QtVersionManager::qtVersionsChanged,
|
||||
IosConfigurations::instance(), &IosConfigurations::updateAutomaticKitList);
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Ios
|
||||
|
||||
Reference in New Issue
Block a user