Skip to content
Snippets Groups Projects
Commit 2a523a49 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

#21 - prefill task and project after initialization otherwise the task combo...

#21 - prefill task and project after initialization otherwise the task combo box is not correctly filled with the available tasks for the selected project
parent d95db2ca
Branches
Tags
No related merge requests found
......@@ -81,7 +81,6 @@ public class InsertTimeController
}
comboBoxProject.getItems().addAll(objects);
comboBoxProject.getSelectionModel().select(settings.getLastProject());
comboBoxProject.setStyle("-fx-font-family: \"Arial\";-fx-font-size: 15px;");
comboBoxTask.setStyle("-fx-font-family: \"Arial\";-fx-font-size: 15px;");
......@@ -104,6 +103,9 @@ public class InsertTimeController
}
});
comboBoxProject.getSelectionModel().select(settings.getLastProject());
comboBoxTask.getSelectionModel().select(settings.getLastTask());
timePicker1Controller.setController(this);
timePicker2Controller.setController(this);
......
......@@ -16,7 +16,7 @@
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<AnchorPane prefHeight="800.0" prefWidth="800.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="de.deadlocker8.smarttime.controller.Controller">
<AnchorPane prefHeight="800.0" prefWidth="800.0" xmlns="http://javafx.com/javafx/8.0.251" xmlns:fx="http://javafx.com/fxml/1" fx:controller="de.deadlocker8.smarttime.controller.Controller">
<children>
<VBox alignment="TOP_CENTER" layoutX="143.0" layoutY="69.0" prefHeight="800.0" prefWidth="650.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<children>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment