Fixed edit events

This commit is contained in:
Marc Beyer 2022-01-31 20:58:18 +01:00
parent b460a77e8c
commit 47739a3783

View File

@ -156,11 +156,11 @@ public class MainController {
private void addEvent(Event event) { private void addEvent(Event event) {
EventPane eventPane = new EventPane(event); EventPane eventPane = new EventPane(event);
eventPane.getEditBtn().setOnAction(event1 -> MainApplication.loadScene( eventPane.getEditBtn().setOnAction(event1 -> MainApplication.loadScene(
"Termin bearbeiten",
"edit-event.fxml", "edit-event.fxml",
"create-event.css", "create-event.css",
"Termin bearbeiten", 650,
600, 650,
600,
fxmlLoader -> { fxmlLoader -> {
EditEventController editEventController = fxmlLoader.getController(); EditEventController editEventController = fxmlLoader.getController();
editEventController.setCurrentEvent(event); editEventController.setCurrentEvent(event);