Skip to content

Commit

Permalink
merged master
Browse files Browse the repository at this point in the history
  • Loading branch information
rachx committed Oct 29, 2016
2 parents 635675d + 8e85531 commit 6072198
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
24 changes: 6 additions & 18 deletions docs/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,14 @@ As shown below, Agendum has 3 panels: **"Do It Soon"**, **"Do It Anytime"** and
## Quick Start

0. Ensure you have Java version `1.8.0_60` or above installed in your Computer.

> Take note that Agendum might not work with earlier versions of Java 8.
1. Download the latest `Agendum.jar` from the [releases](../../../releases) tab.

2. Copy Agendum.jar to the folder you want to use as the home.

3. Double-click the file to start Agendum. The GUI should appear promptly.

4. Type a command in the command box and press <kbd>Enter</kbd> to execute it.

e.g. typing **`help`** and pressing <kbd>Enter</kbd> will list some information about commands.

5. Go ahead and try some of the commands listed below!
1. Download the latest `Agendum.jar` from [here](../../../releases).
2. Launch Agendum!
3. Type a command in the command box and press <kbd>Enter</kbd> to execute it. Tip: type **`help`** to learn some new commands.
4. Go ahead and try some of the commands listed below!
* **`add`**` Go to shopping mall` : adds a task with description `Go to shopping mall` to Agendum.
* **`delete`**` 3` : deletes the 3rd task shown in the current list
* **`list`** : lists all uncompleted tasks
* **`delete`**` 3` : deletes the 3rd task shown in the current
* **`exit`** : exits Agendum

6. You can refer to the [Features](#features) section below for more details of each command.
5. You can refer to the [Features](#features) section below for more details of each command.


&nbsp;
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/seedu/agendum/model/ModelManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ private void backupNewToDoList() {
previousLists.push(latestList);
}

private void clearPreviousToDoLists() {
previousLists.clear();
}


//=========== Storage Methods ==========================================================================

Expand Down Expand Up @@ -267,6 +271,8 @@ public String toString() {
public void handleLoadDataCompleteEvent(LoadDataCompleteEvent event) {
this.toDoList.resetData(event.data);
indicateToDoListChanged();
clearPreviousToDoLists();
backupNewToDoList();
logger.info("Loading completed - Todolist updated.");
}
}

0 comments on commit 6072198

Please sign in to comment.