From f774c6dfb162082c829fcd059e88403c3611330b Mon Sep 17 00:00:00 2001 From: Phodal Huang Date: Fri, 8 Mar 2024 09:11:23 +0800 Subject: [PATCH] fix(gui): improve focus handling in AutoDevVariableList #51 The commit addresses an issue where the focus handling in the AutoDevVariableList component was not properly managed, leading to inconsistent visual feedback for selected cells. The fix ensures that the selected cells are highlighted with the appropriate border, regardless of the focus state, by conditionally setting the border based on the cell's focus and selection status. --- .../unitmesh/devti/gui/chat/AutoDevVariableList.kt | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/main/kotlin/cc/unitmesh/devti/gui/chat/AutoDevVariableList.kt b/src/main/kotlin/cc/unitmesh/devti/gui/chat/AutoDevVariableList.kt index dc321cb7bb..2ed59e5424 100644 --- a/src/main/kotlin/cc/unitmesh/devti/gui/chat/AutoDevVariableList.kt +++ b/src/main/kotlin/cc/unitmesh/devti/gui/chat/AutoDevVariableList.kt @@ -50,20 +50,16 @@ class VariableListCellRenderer : ListCellRenderer