From fd291f225e7f2fe3c17541f2cda3efc1d30bf868 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 11 May 2025 19:27:35 +0200 Subject: [PATCH] Properly set state when reseting ollama URL to default. --- profiler/src/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index 30012f89..a8dadd66 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -869,7 +869,13 @@ static void DrawContents() ImGui::Indent(); ImGui::TextUnformatted( "Ollama URL" ); ImGui::SameLine(); - if( ImGui::Button( ICON_FA_HOUSE ) ) s_config.llmAddress = "http://localhost:11434"; + if( ImGui::Button( ICON_FA_HOUSE ) ) + { + llmstatus = 0; + llmModels.clear(); + s_config.llmAddress = "http://localhost:11434"; + SaveConfig(); + } ImGui::SameLine(); char llmAddress[1024]; snprintf( llmAddress, sizeof( llmAddress ), "%s", s_config.llmAddress.c_str() );