forked from qt-creator/qt-creator
Copilot: Use functor to apply settings
Change-Id: Ie17273a4fd55c2144b2751166fb69bd523033321 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -72,12 +72,11 @@ file from the Copilot neovim plugin.
|
|||||||
authWidget,
|
authWidget,
|
||||||
updateAuthWidget);
|
updateAuthWidget);
|
||||||
updateAuthWidget();
|
updateAuthWidget();
|
||||||
}
|
|
||||||
|
|
||||||
void apply() final
|
setOnApply([] {
|
||||||
{
|
|
||||||
CopilotSettings::instance().apply();
|
CopilotSettings::instance().apply();
|
||||||
CopilotSettings::instance().writeSettings(Core::ICore::settings());
|
CopilotSettings::instance().writeSettings(Core::ICore::settings());
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user