From 7e73553acaf2d081a4ec00f14963443c47c13199 Mon Sep 17 00:00:00 2001 From: dijunkun Date: Thu, 9 Oct 2025 15:23:37 +0800 Subject: [PATCH] [fix] fix line drawing in recent connections window --- src/single_window/recent_connections.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/single_window/recent_connections.cpp b/src/single_window/recent_connections.cpp index e3a1477..1ba3073 100644 --- a/src/single_window/recent_connections.cpp +++ b/src/single_window/recent_connections.cpp @@ -209,8 +209,8 @@ int Render::ShowRecentConnections() { ImVec2 line_end = ImVec2( image_screen_pos.x + recent_connection_image_width_ + 20.0f, image_screen_pos.y + recent_connection_image_height_ + button_height); - ImGui::GetForegroundDrawList()->AddLine(line_start, line_end, - IM_COL32(0, 0, 0, 122), 1.0f); + ImGui::GetWindowDrawList()->AddLine(line_start, line_end, + IM_COL32(0, 0, 0, 122), 1.0f); } count++;