Skip to content

Commit 4dbf66d

Browse files
committed
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.
1 parent 4a0a7a4 commit 4dbf66d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/cc/unitmesh/devti/gui/chat/ChatCodingPanel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class ChatCodingPanel(private val chatCodingService: ChatCodingService, val disp
6767
myScrollPane.verticalScrollBar.autoscrolls = true
6868
myScrollPane.background = UIUtil.getListBackground()
6969

70-
progressBar = JProgressBar(2)
70+
progressBar = JProgressBar()
7171

7272
val actionLink = ActionLink(AutoDevBundle.message("label.submit.issue")) {
7373
BrowserUtil.browse(AutoDevBundle.message("chat.panel.submit.issue.url"))

0 commit comments

Comments
 (0)