aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/copilot
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/copilot')
-rw-r--r--src/plugins/copilot/copilotplugin.cpp2
-rw-r--r--src/plugins/copilot/copilotsettings.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/copilot/copilotplugin.cpp b/src/plugins/copilot/copilotplugin.cpp
index b5729fe955d..9e7baeab165 100644
--- a/src/plugins/copilot/copilotplugin.cpp
+++ b/src/plugins/copilot/copilotplugin.cpp
@@ -125,7 +125,7 @@ public:
requestAct->setEnabled(enabled);
};
- connect(&settings().enableCopilot, &BaseAspect::changed, this, updateActions);
+ settings().enableCopilot.addOnChanged(this, updateActions);
updateActions();
diff --git a/src/plugins/copilot/copilotsettings.cpp b/src/plugins/copilot/copilotsettings.cpp
index 81fd4c3b126..fc1c48ea419 100644
--- a/src/plugins/copilot/copilotsettings.cpp
+++ b/src/plugins/copilot/copilotsettings.cpp
@@ -252,8 +252,8 @@ CopilotProjectSettings::CopilotProjectSettings(ProjectExplorer::Project *project
Store map = storeFromVariant(project->namedSettings(Constants::COPILOT_PROJECT_SETTINGS_ID));
fromMap(map);
- connect(&enableCopilot, &BaseAspect::changed, this, [this, project] { save(project); });
- connect(&useGlobalSettings, &BaseAspect::changed, this, [this, project] { save(project); });
+ enableCopilot.addOnChanged(this, [this, project] { save(project); });
+ useGlobalSettings.addOnChanged(this, [this, project] { save(project); });
}
void CopilotProjectSettings::setUseGlobalSettings(bool useGlobal)