Add about feature

This commit is contained in:
2021-02-24 11:36:04 +01:00
parent bfc867b8fd
commit bcbf6b5153
5 changed files with 43 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ import com.google.common.eventbus.Subscribe;
import app.events.ExitApplicationEvent;
import app.events.LanguageChangedEvent;
import app.events.OpenLinkInBrowserEvent;
import app.events.ToggleCommentEvent;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
@@ -120,6 +121,11 @@ public class MenubarController implements Initializable, Controller {
/* ABOUT */
/* ------------------------------------------------------------------------ */
@FXML
private void handleAbout(ActionEvent event) {
String aboutLink = "https://gitlab.stud.idi.ntnu.no/oysteikt/tdt4100-project-2021v/-/blob/master/README.md";
this.eventBus.post(new OpenLinkInBrowserEvent(aboutLink));
}
/* ------------------------------------------------------------------------ */
/* SUBSCRIPTIONS */