Commit 85430926 authored by con's avatar con
Browse files

Never nag again about Qt Quick Visual Designer after pressing X, or enabling it once.

Reviewed-by: kkoehne
parent 8d2f5f20
......@@ -176,6 +176,7 @@ void QmlJSEditorFactory::activateQmlDesigner()
disconnect(Core::EditorManager::instance(), SIGNAL(currentEditorChanged(Core::IEditor*)),
this, SLOT(updateEditorInfoBar(Core::IEditor*)));
Core::EditorManager::instance()->hideEditorInfoBar(QMLDESIGNER_INFO_BAR);
neverAskAgainAboutQmlDesigner();
return;
}
}
......@@ -188,6 +189,7 @@ void QmlJSEditorFactory::neverAskAgainAboutQmlDesigner()
settings->beginGroup(QLatin1String(KEY_QMLGROUP));
settings->setValue(QLatin1String(KEY_NAGABOUTDESIGNER), false);
settings->endGroup();
settings->sync();
disconnect(Core::EditorManager::instance(), SIGNAL(currentEditorChanged(Core::IEditor*)),
this, SLOT(updateEditorInfoBar(Core::IEditor*)));
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment