fix: Add write settings after changing

This commit is contained in:
Petr Mironychev
2025-11-13 01:20:50 +01:00
parent 1070de6e6e
commit 75cbc46808
4 changed files with 4 additions and 0 deletions

View File

@ -804,6 +804,7 @@ void ChatRootView::setIsThinkingMode(bool newIsThinkingMode)
m_isThinkingMode = newIsThinkingMode; m_isThinkingMode = newIsThinkingMode;
Settings::chatAssistantSettings().enableThinkingMode.setValue(newIsThinkingMode); Settings::chatAssistantSettings().enableThinkingMode.setValue(newIsThinkingMode);
Settings::chatAssistantSettings().writeSettings();
emit isThinkingModeChanged(); emit isThinkingModeChanged();
} }

View File

@ -349,6 +349,7 @@ void ChatAssistantSettings::resetSettingsToDefaults()
resetAspect(codeFontSize); resetAspect(codeFontSize);
resetAspect(textFormat); resetAspect(textFormat);
resetAspect(chatRenderer); resetAspect(chatRenderer);
writeSettings();
} }
} }

View File

@ -389,6 +389,7 @@ void CodeCompletionSettings::resetSettingsToDefaults()
resetAspect(useOpenFilesInQuickRefactor); resetAspect(useOpenFilesInQuickRefactor);
resetAspect(quickRefactorSystemPrompt); resetAspect(quickRefactorSystemPrompt);
resetAspect(modelOutputHandler); resetAspect(modelOutputHandler);
writeSettings();
} }
} }

View File

@ -185,6 +185,7 @@ void ProviderSettings::resetSettingsToDefaults()
resetAspect(mistralAiApiKey); resetAspect(mistralAiApiKey);
resetAspect(googleAiApiKey); resetAspect(googleAiApiKey);
resetAspect(ollamaBasicAuthApiKey); resetAspect(ollamaBasicAuthApiKey);
writeSettings();
} }
} }