MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / resetSettingsToDefaults

Method resetSettingsToDefaults

settings/ProviderSettings.cpp:221–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221void ProviderSettings::resetSettingsToDefaults()
222{
223 QMessageBox::StandardButton reply;
224 reply = QMessageBox::question(
225 Core::ICore::dialogParent(),
226 Tr::tr("Reset Settings"),
227 Tr::tr("Are you sure you want to reset all settings to default values?"),
228 QMessageBox::Yes | QMessageBox::No);
229
230 if (reply == QMessageBox::Yes) {
231 resetAspect(openRouterApiKey);
232 resetAspect(openAiCompatApiKey);
233 resetAspect(claudeApiKey);
234 resetAspect(claudeEnablePromptCaching);
235 resetAspect(claudeUseExtendedCacheTTL);
236 resetAspect(openAiApiKey);
237 resetAspect(mistralAiApiKey);
238 resetAspect(googleAiApiKey);
239 resetAspect(ollamaBasicAuthApiKey);
240 resetAspect(llamaCppApiKey);
241 resetAspect(qwenApiKey);
242 resetAspect(deepSeekApiKey);
243 writeSettings();
244 }
245}
246
247class ProviderSettingsPage : public Core::IOptionsPage
248{

Callers

nothing calls this directly

Calls 1

resetAspectFunction · 0.85

Tested by

no test coverage detected