forked from qt-creator/qt-creator
QmlProfiler: Delay creation of views until activation
We don't need to waste the time and memory required to create the views if they are never shown. Change-Id: I56add08981c90263e6735f5b7e6fac2140b457e4 Fixes: QTCREATORBUG-21894 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -91,11 +91,7 @@ public:
|
||||
bool QmlProfilerPlugin::initialize(const QStringList &arguments, QString *errorString)
|
||||
{
|
||||
Q_UNUSED(arguments)
|
||||
|
||||
if (!Utils::HostOsInfo::canCreateOpenGLContext(errorString))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
return Utils::HostOsInfo::canCreateOpenGLContext(errorString);
|
||||
}
|
||||
|
||||
void QmlProfilerPlugin::extensionsInitialized()
|
||||
|
||||
Reference in New Issue
Block a user