Skip to content

Commit

Permalink
set customs core after changing it for a custom annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Feuermagier committed Sep 19, 2024
1 parent 3fe4b14 commit e1d8be3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/edu/kit/kastel/login/JwtRetriever.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ public JBCefCookie getJwtCookie() throws Exception {
while (true) {
// We may have been woken up because the cookie is available
if (jwtCookie != null) {
// Can't use ApplicationManager.getApplication().invokeLater here,
// as this is only called on application exit on Linux in this specific case (not sure why)
SwingUtilities.invokeLater(() -> {
window.performOKAction();
// window.dispatchEvent(new WindowEvent(window, WindowEvent.WINDOW_CLOSING));
Expand Down
1 change: 1 addition & 0 deletions src/main/java/edu/kit/kastel/state/ActiveAssessment.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ public void changeCustomMessage(Annotation annotation) {
annotation.getCustomScore().orElseThrow(),
messageWithPoints -> {
annotation.setCustomMessage(messageWithPoints.message());
annotation.setCustomScore(messageWithPoints.points());
this.notifyListeners();
});
} else {
Expand Down

0 comments on commit e1d8be3

Please sign in to comment.