Skip to content

Commit

Permalink
Open event log when clicking on collapsed notification (#8837)
Browse files Browse the repository at this point in the history
* Open event log when clicking on collapsed notification

* use lambda

Co-authored-by: Siedlerchr <[email protected]>
  • Loading branch information
claell and Siedlerchr authored May 22, 2022
1 parent 7257350 commit b9846d7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/java/org/jabref/gui/JabRefDialogService.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import javafx.stage.Window;
import javafx.util.Duration;

import org.jabref.gui.help.ErrorConsoleAction;
import org.jabref.gui.icon.IconTheme;
import org.jabref.gui.theme.ThemeManager;
import org.jabref.gui.util.BackgroundTask;
Expand Down Expand Up @@ -343,9 +344,14 @@ public void notify(String message) {
.threshold(5,
Notifications.create()
.title(Localization.lang("Last notification"))
// TODO: Change to a notification overview instead of event log when that is available. The event log is not that user friendly (different purpose).
.text(
"(" + Localization.lang("Check the event log to see all notifications") + ")"
+ "\n\n" + message))
+ "\n\n" + message)
.onAction((e)-> {
ErrorConsoleAction ec = new ErrorConsoleAction();
ec.execute();
}))
.hideCloseButton()
.show();
});
Expand Down

0 comments on commit b9846d7

Please sign in to comment.