Skip to content

Commit

Permalink
Improve handling of the Refresh button
Browse files Browse the repository at this point in the history
  • Loading branch information
michalis-vitos committed Apr 12, 2018
1 parent 4666efd commit f0198a1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public void initialize()

buttonRefresh.setGraphic(refreshIcon);
buttonRefresh.setContentDisplay(ContentDisplay.RIGHT);
buttonRefresh.setDisable(true);

// Create About icons
IconNode aboutIcon = new IconNode(FontAwesome.INFO);
Expand Down Expand Up @@ -235,6 +236,9 @@ private boolean validateWorkingDirectory()

// Set text
workingDirectoryLabel.setText(projectChecker.getSapelliProjectDir().toString());

// Set refresh button
buttonRefresh.setDisable(false);
}
else
{
Expand Down

0 comments on commit f0198a1

Please sign in to comment.