Core: Set Terms as accepted during install wizard

Change-Id: Idff08bcbf4e425441bcc6bb22c1e9fc1978a5ea1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Marcus Tillmanns
2024-11-27 14:58:34 +01:00
parent fc583ef9f6
commit 54c6a77392

View File

@@ -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);