@@ -74,7 +74,7 @@ class TaskStepPanel(
74
74
}
75
75
rightPanel.add(statusLabel)
76
76
77
- if (task.status == TaskStatus .TODO || task.status == TaskStatus . FAILED ) {
77
+ if (task.status == TaskStatus .TODO ) {
78
78
val executeButton = JButton (AutoDevIcons .RUN ).apply {
79
79
preferredSize = Dimension (20 , 20 )
80
80
margin = JBUI .emptyInsets()
@@ -84,14 +84,16 @@ class TaskStepPanel(
84
84
addActionListener { executeTask() }
85
85
}
86
86
rightPanel.add(executeButton)
87
- }
88
-
89
- if (task.status == TaskStatus .FAILED ) {
90
- val retryButton = JButton (" Retry" ).apply {
91
- margin = JBUI .insets(0 , 2 ) // Less margin
92
- font = font.deriveFont(Font .PLAIN , 9f ) // Smaller font size
93
- addActionListener { executeTask() }
87
+ } else if (task.status == TaskStatus .FAILED ) {
88
+ val retryButton = JButton (AutoDevIcons .RERUN ).apply {
89
+ preferredSize = Dimension (24 , 24 )
90
+ margin = JBUI .emptyInsets()
91
+ isBorderPainted = false
92
+ isContentAreaFilled = false
93
+ toolTipText = " Rerun"
94
+ addActionListener { executeTask(isRerun = true ) }
94
95
}
96
+
95
97
rightPanel.add(retryButton)
96
98
}
97
99
0 commit comments