Skip to content

Commit edc60ca

Browse files
committed
Show the green dot also on expired exercises
1 parent 441a344 commit edc60ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tmc-plugin/src/fi/helsinki/cs/tmc/ui/ExerciseIconAnnotator.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ private Image annotationIconForExericse(Exercise exercise) throws IOException {
100100
}
101101

102102
private String annotationIconNameForExercise(Exercise exercise) {
103-
if (exercise.hasDeadlinePassed()) {
104-
return "expired-project-dot.png";
105-
} else if (exercise.isAttempted() && exercise.isCompleted() && exercise.isAllReviewPointsGiven()) {
103+
if (exercise.isAttempted() && exercise.isCompleted() && exercise.isAllReviewPointsGiven()) {
106104
return "green-project-dot.png";
105+
} else if (exercise.hasDeadlinePassed()) {
106+
return "expired-project-dot.png";
107107
} else if (exercise.isAttempted() && exercise.isCompleted()) {
108108
return "yellow-project-dot.png";
109109
} else if (exercise.isAttempted()) {

0 commit comments

Comments
 (0)