Skip to content

Commit 441a344

Browse files
committed
Disabled icons still broken..
1 parent 38fa953 commit 441a344

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ public Image annotateIcon(Project nbProject, Image origImg, boolean openedNode)
6868
//Had some very weird problems with that. Try again some day.
6969

7070
Image img = origImg;
71-
if (exercise.hasDeadlinePassed()) {
72-
img = ImageUtilities.createDisabledImage(origImg);
73-
}
71+
// if (exercise.hasDeadlinePassed()) {
72+
// img = ImageUtilities.createDisabledImage(origImg);
73+
// }
7474
try {
7575
Image annotation = annotationIconForExericse(exercise);
7676
if (annotation != null) {
@@ -139,6 +139,9 @@ private String tooltipForExercise(Exercise exercise) {
139139
final Date deadlineDate = exercise.getDeadlineDate();
140140
if (!exercise.isCompleted() && deadlineDate != null) {
141141
parts.add("deadline: " + deadlineDate);
142+
if (exercise.hasDeadlinePassed()) {
143+
parts.add("expired");
144+
}
142145
}
143146

144147
return StringUtils.capitalize(StringUtils.join(parts, " - "));

0 commit comments

Comments
 (0)