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

Fixed #21 - add time manually: prefill task and project from main view

parent 58f5f3a8
Branches
Tags
No related merge requests found
...@@ -83,8 +83,11 @@ public class InsertTimeController ...@@ -83,8 +83,11 @@ public class InsertTimeController
} }
comboBoxProject.getItems().addAll(objects); comboBoxProject.getItems().addAll(objects);
comboBoxProject.getSelectionModel().select(settings.getLastProject());
comboBoxProject.setStyle("-fx-font-family: \"Arial\";-fx-font-size: 15px;"); comboBoxProject.setStyle("-fx-font-family: \"Arial\";-fx-font-size: 15px;");
comboBoxTask.setStyle("-fx-font-family: \"Arial\";-fx-font-size: 15px;"); comboBoxTask.setStyle("-fx-font-family: \"Arial\";-fx-font-size: 15px;");
comboBoxTask.getSelectionModel().select(settings.getLastTask());
comboBoxProject.valueProperty().addListener((observable, oldValue, newValue) -> { comboBoxProject.valueProperty().addListener((observable, oldValue, newValue) -> {
comboBoxTask.getItems().clear(); comboBoxTask.getItems().clear();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment