mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-11-14 05:52:50 -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;
|
m_isThinkingMode = newIsThinkingMode;
|
||||||
|
|
||||||
Settings::chatAssistantSettings().enableThinkingMode.setValue(newIsThinkingMode);
|
Settings::chatAssistantSettings().enableThinkingMode.setValue(newIsThinkingMode);
|
||||||
|
Settings::chatAssistantSettings().writeSettings();
|
||||||
|
|
||||||
emit isThinkingModeChanged();
|
emit isThinkingModeChanged();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -349,6 +349,7 @@ void ChatAssistantSettings::resetSettingsToDefaults()
|
|||||||
resetAspect(codeFontSize);
|
resetAspect(codeFontSize);
|
||||||
resetAspect(textFormat);
|
resetAspect(textFormat);
|
||||||
resetAspect(chatRenderer);
|
resetAspect(chatRenderer);
|
||||||
|
writeSettings();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -389,6 +389,7 @@ void CodeCompletionSettings::resetSettingsToDefaults()
|
|||||||
resetAspect(useOpenFilesInQuickRefactor);
|
resetAspect(useOpenFilesInQuickRefactor);
|
||||||
resetAspect(quickRefactorSystemPrompt);
|
resetAspect(quickRefactorSystemPrompt);
|
||||||
resetAspect(modelOutputHandler);
|
resetAspect(modelOutputHandler);
|
||||||
|
writeSettings();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -185,6 +185,7 @@ void ProviderSettings::resetSettingsToDefaults()
|
|||||||
resetAspect(mistralAiApiKey);
|
resetAspect(mistralAiApiKey);
|
||||||
resetAspect(googleAiApiKey);
|
resetAspect(googleAiApiKey);
|
||||||
resetAspect(ollamaBasicAuthApiKey);
|
resetAspect(ollamaBasicAuthApiKey);
|
||||||
|
writeSettings();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user