Skip to content

Commit

Permalink
Update Controller.java
Browse files Browse the repository at this point in the history
  • Loading branch information
yulonglim authored Aug 31, 2021
1 parent 30d2353 commit 1567d4d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/duke/Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ public void load() {
listContent += (i + 1) + ". " + tasks.getTask(i).toString() + "\n";
}
listLabel.setText("Here are the tasks in your list:\n" + listContent);
try {
storage.save(tasks);
} catch (IOException e) {
e.printStackTrace();
}
addTaskError.setText("");
deleteError.setText("");
doneError.setText("");
Expand Down

0 comments on commit 1567d4d

Please sign in to comment.