forked from qt-creator/qt-creator
Core: Set Terms as accepted during install wizard
Change-Id: Idff08bcbf4e425441bcc6bb22c1e9fc1978a5ea1 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -499,6 +499,10 @@ bool executePluginInstallWizard(const FilePath &archive)
|
|||||||
if (!install())
|
if (!install())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
// install() would have failed if the user did not accept the terms and conditions
|
||||||
|
// so we can safely set them as accepted here.
|
||||||
|
PluginManager::instance()->setTermsAndConditionsAccepted(data.pluginSpec.get());
|
||||||
|
|
||||||
if (data.loadImmediately) {
|
if (data.loadImmediately) {
|
||||||
auto spec = data.pluginSpec.release();
|
auto spec = data.pluginSpec.release();
|
||||||
spec->setEnabledBySettings(true);
|
spec->setEnabledBySettings(true);
|
||||||
|
Reference in New Issue
Block a user