mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-11-13 21:42:52 -05:00
fix: Add write settings after changing
This commit is contained in:
@ -804,6 +804,7 @@ void ChatRootView::setIsThinkingMode(bool newIsThinkingMode)
|
||||
m_isThinkingMode = newIsThinkingMode;
|
||||
|
||||
Settings::chatAssistantSettings().enableThinkingMode.setValue(newIsThinkingMode);
|
||||
Settings::chatAssistantSettings().writeSettings();
|
||||
|
||||
emit isThinkingModeChanged();
|
||||
}
|
||||
|
||||
@ -349,6 +349,7 @@ void ChatAssistantSettings::resetSettingsToDefaults()
|
||||
resetAspect(codeFontSize);
|
||||
resetAspect(textFormat);
|
||||
resetAspect(chatRenderer);
|
||||
writeSettings();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -389,6 +389,7 @@ void CodeCompletionSettings::resetSettingsToDefaults()
|
||||
resetAspect(useOpenFilesInQuickRefactor);
|
||||
resetAspect(quickRefactorSystemPrompt);
|
||||
resetAspect(modelOutputHandler);
|
||||
writeSettings();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -185,6 +185,7 @@ void ProviderSettings::resetSettingsToDefaults()
|
||||
resetAspect(mistralAiApiKey);
|
||||
resetAspect(googleAiApiKey);
|
||||
resetAspect(ollamaBasicAuthApiKey);
|
||||
writeSettings();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user