mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-11-13 13:32:55 -05:00
fix: Chat mode default value
This commit is contained in:
@ -49,7 +49,6 @@ ChatRootView::ChatRootView(QQuickItem *parent)
|
|||||||
, m_promptProvider(LLMCore::PromptTemplateManager::instance())
|
, m_promptProvider(LLMCore::PromptTemplateManager::instance())
|
||||||
, m_clientInterface(new ClientInterface(m_chatModel, &m_promptProvider, this))
|
, m_clientInterface(new ClientInterface(m_chatModel, &m_promptProvider, this))
|
||||||
, m_isRequestInProgress(false)
|
, m_isRequestInProgress(false)
|
||||||
, m_isAgentMode(false)
|
|
||||||
{
|
{
|
||||||
m_isSyncOpenFiles = Settings::chatAssistantSettings().linkOpenFiles();
|
m_isSyncOpenFiles = Settings::chatAssistantSettings().linkOpenFiles();
|
||||||
connect(
|
connect(
|
||||||
@ -150,7 +149,7 @@ ChatRootView::ChatRootView(QQuickItem *parent)
|
|||||||
&ChatRootView::refreshRules);
|
&ChatRootView::refreshRules);
|
||||||
|
|
||||||
QSettings appSettings;
|
QSettings appSettings;
|
||||||
m_isAgentMode = appSettings.value("QodeAssist/Chat/AgentMode", true).toBool();
|
m_isAgentMode = appSettings.value("QodeAssist/Chat/AgentMode", false).toBool();
|
||||||
|
|
||||||
connect(
|
connect(
|
||||||
&Settings::generalSettings().useTools,
|
&Settings::generalSettings().useTools,
|
||||||
|
|||||||
@ -87,7 +87,7 @@ ChatRootView {
|
|||||||
agentModeSwitch {
|
agentModeSwitch {
|
||||||
checked: root.isAgentMode
|
checked: root.isAgentMode
|
||||||
enabled: root.toolsSupportEnabled
|
enabled: root.toolsSupportEnabled
|
||||||
onCheckedChanged: {
|
onToggled: {
|
||||||
root.isAgentMode = agentModeSwitch.checked
|
root.isAgentMode = agentModeSwitch.checked
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user