| 219 | } |
| 220 | |
| 221 | void 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 | |
| 247 | class ProviderSettingsPage : public Core::IOptionsPage |
| 248 | { |
nothing calls this directly
no test coverage detected