forked from qt-creator/qt-creator
Lua LS: Use applySettings with specific settings
LanguageClientManager::applySettings() does not know when to apply custom settings so we make sure that we explicitly apply our own. Change-Id: I316e94d0fc50eafe59ca83142b367dd07fa5b353 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -308,7 +308,15 @@ public:
|
|||||||
if (m_aspects) {
|
if (m_aspects) {
|
||||||
connect(m_aspects, &AspectContainer::applied, this, [this] {
|
connect(m_aspects, &AspectContainer::applied, this, [this] {
|
||||||
updateOptions();
|
updateOptions();
|
||||||
LanguageClientManager::applySettings();
|
auto settings = Utils::findOr(
|
||||||
|
LanguageClientManager::currentSettings(), nullptr, [this](BaseSettings *s) {
|
||||||
|
return s->m_id == m_clientSettingsId;
|
||||||
|
});
|
||||||
|
|
||||||
|
if (settings)
|
||||||
|
LanguageClientManager::applySettings(settings);
|
||||||
|
else
|
||||||
|
LanguageClientManager::applySettings();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user