From 931f55200b60260060ad59c9860d5fff965849eb Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Mon, 22 Jul 2024 15:27:34 +0200 Subject: [PATCH] ExtensionManager: Keep "Load on Start" checkbox up to date If a plugin was selected in the ExtensionManager, and meanwhile, the "load" status of that plugin was changed via the plugin dialog, the change was not reflected in the ExtensionManager. This change connects the "Load on Start" checkbox in the ExtensionManager with the PluginManager's "changed" signal to keep the state in sync. Fixes: QTCREATORBUG-31177 Change-Id: I6946e23e8491e9c896026b55315acf76bb50cb92 Reviewed-by: Cristian Adam --- src/plugins/extensionmanager/extensionmanagerwidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/extensionmanager/extensionmanagerwidget.cpp b/src/plugins/extensionmanager/extensionmanagerwidget.cpp index 2ac839d98f0..9ce803e6f02 100644 --- a/src/plugins/extensionmanager/extensionmanagerwidget.cpp +++ b/src/plugins/extensionmanager/extensionmanagerwidget.cpp @@ -279,6 +279,8 @@ public: } }); + connect(ExtensionSystem::PluginManager::instance(), + &ExtensionSystem::PluginManager::pluginsChanged, this, &PluginStatusWidget::update); connect(m_restartButton, &QAbstractButton::clicked, ICore::instance(), &ICore::restart, Qt::QueuedConnection);