Skip to content

Commit

Permalink
Merge pull request #244 from S-K-Y-Light/change-GUI
Browse files Browse the repository at this point in the history
Force Consultation & Lesson UI to Update 500 Times
  • Loading branch information
S-K-Y-Light authored Nov 7, 2024
2 parents 37e0ce0 + 435fde8 commit 92b7b13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/ui/ConsultationCard.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public ConsultationCard(Consultation consultation, int displayedIndex) {
.forEach(this::createLabel);

Check warning on line 64 in src/main/java/seedu/address/ui/ConsultationCard.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/seedu/address/ui/ConsultationCard.java#L62-L64

Added lines #L62 - L64 were not covered by tests

// Ui Doesn't Properly Update Unless this Line of Code is run multiple times
for (int i = 0; i < 5; i++) {
for (int i = 0; i < 500; i++) {
Platform.runLater(() -> cardPane.getParent().requestLayout());

Check warning on line 68 in src/main/java/seedu/address/ui/ConsultationCard.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/seedu/address/ui/ConsultationCard.java#L68

Added line #L68 was not covered by tests
}
}

Check warning on line 70 in src/main/java/seedu/address/ui/ConsultationCard.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/seedu/address/ui/ConsultationCard.java#L70

Added line #L70 was not covered by tests
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/ui/LessonCard.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public LessonCard(Lesson lesson, int displayedIndex) {
.forEach(this::createLabel);

Check warning on line 64 in src/main/java/seedu/address/ui/LessonCard.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/seedu/address/ui/LessonCard.java#L62-L64

Added lines #L62 - L64 were not covered by tests

// Ui Doesn't Properly Update Unless this Line of Code is run multiple times
for (int i = 0; i < 5; i++) {
for (int i = 0; i < 500; i++) {
Platform.runLater(() -> cardPane.getParent().requestLayout());

Check warning on line 68 in src/main/java/seedu/address/ui/LessonCard.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/seedu/address/ui/LessonCard.java#L68

Added line #L68 was not covered by tests
}
}

Check warning on line 70 in src/main/java/seedu/address/ui/LessonCard.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/seedu/address/ui/LessonCard.java#L70

Added line #L70 was not covered by tests
Expand Down

0 comments on commit 92b7b13

Please sign in to comment.