From 4dbf66dc1e3897da8db48d7cf41d28e338fe7af8 Mon Sep 17 00:00:00 2001 From: Phodal Huang Date: Tue, 5 Mar 2024 09:07:49 +0800 Subject: [PATCH] fix(gui): prevent progress bar from resetting after user input #51 Previously, the progress bar was resetting after each user input, which was confusing and unnecessary. This commit addresses this issue by removing the hard-coded value in the progress bar constructor and instead using a default constructor, which does not reset the progress bar. This change ensures that the progress bar maintains its current value after each user action, providing a more intuitive and consistent user experience. --- src/main/kotlin/cc/unitmesh/devti/gui/chat/ChatCodingPanel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/cc/unitmesh/devti/gui/chat/ChatCodingPanel.kt b/src/main/kotlin/cc/unitmesh/devti/gui/chat/ChatCodingPanel.kt index 2f5d76b3c9..41428cf353 100644 --- a/src/main/kotlin/cc/unitmesh/devti/gui/chat/ChatCodingPanel.kt +++ b/src/main/kotlin/cc/unitmesh/devti/gui/chat/ChatCodingPanel.kt @@ -67,7 +67,7 @@ class ChatCodingPanel(private val chatCodingService: ChatCodingService, val disp myScrollPane.verticalScrollBar.autoscrolls = true myScrollPane.background = UIUtil.getListBackground() - progressBar = JProgressBar(2) + progressBar = JProgressBar() val actionLink = ActionLink(AutoDevBundle.message("label.submit.issue")) { BrowserUtil.browse(AutoDevBundle.message("chat.panel.submit.issue.url"))