Skip to content

Commit

Permalink
Modifies the openEditJobView function, so that it disables the cancel…
Browse files Browse the repository at this point in the history
… button of the settings view.

If the user clicks the cancel button while editing a job, then the job is erased due to the way jobs have to be added/removed from the view's list and the model.
  • Loading branch information
Tyler MacEachern committed Jan 9, 2018
1 parent d760e7f commit 3e813d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controller/MainController.java
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ private void openEditJobView() {
model.getJobs().remove(job.getName());
view.getJobsList().getSelectionModel().clearSelection();

controller.getView().getButton_cancel().setDisable(true);
sceneManager.swapToNewScene(controller);
}

Expand Down

0 comments on commit 3e813d2

Please sign in to comment.