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) {
EventPane eventPane = new EventPane(event);
eventPane.getEditBtn().setOnAction(event1 -> MainApplication.loadScene(
"Termin bearbeiten",
"edit-event.fxml",
"create-event.css",
"Termin bearbeiten",
600,
600,
650,
650,
fxmlLoader -> {
EditEventController editEventController = fxmlLoader.getController();
editEventController.setCurrentEvent(event);