@@ -124,7 +124,6 @@ public class ViewController {
124124 private Button settingsButton ;
125125 @ FXML
126126 private Button calendarButton ;
127-
128127 @ FXML
129128 private TextArea textArea ;
130129
@@ -133,7 +132,6 @@ public class ViewController {
133132
134133 private ColorTimeLine mainColorTimeLine ;
135134
136-
137135 private class Delta {
138136 double x ;
139137 double y ;
@@ -189,7 +187,6 @@ private void initialize() {
189187 setProjectListVisible (c );
190188 });
191189
192-
193190 minimizeButton .setOnAction (ae -> mainStage .setIconified (true ));
194191 minimizeButton .textFillProperty ().bind (fontColorProperty );
195192 closeButton .setOnAction (ae -> openConfirmationWindow ());
@@ -337,13 +334,12 @@ private void initialize() {
337334
338335 private void openConfirmationWindow () {
339336 if (model .confirmClose .get ()) {
340-
341337 Alert alert = new Alert (Alert .AlertType .CONFIRMATION , "" , ButtonType .YES , ButtonType .CANCEL );
342338 alert .setTitle ("Confirm exit" );
343339 alert .setHeaderText ("Are you sure you want to close KeepTime?" );
344340
345- Stage stage = (Stage ) alert .getDialogPane ().getScene ().getWindow ();
346- stage .getIcons ().add (new Image (Resources .getResource (RESOURCE .ICON_MAIN ).toString ()));
341+ Stage stage = (Stage ) alert .getDialogPane ().getScene ().getWindow ();
342+ stage .getIcons ().add (new Image (Resources .getResource (RESOURCE .ICON_MAIN ).toString ()));
347343
348344 alert .initOwner (mainStage );
349345 alert .showAndWait ();
0 commit comments