Skip to content

Commit

Permalink
Merge pull request #256 from yeodonghan/Fix-data-folder
Browse files Browse the repository at this point in the history
Fix issue: Create data folder during init
  • Loading branch information
EugeneTeu authored Nov 5, 2019
2 parents 946fdf1 + 650a2dc commit 015004d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/seedu/address/MainApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ public void init() throws Exception {
//create statistic manager;
statistic = new StatisticManager();
model = initModelManager(storage, userPrefs);
storage.saveCustomerBook(model.getCustomerBook());
storage.savePhoneBook(model.getPhoneBook());
storage.saveScheduleBook(model.getScheduleBook());
storage.saveOrderBook(model.getOrderBook());
storage.saveArchivedOrderBook(model.getArchivedOrderBook());
logic = new LogicManager(model, storage, statistic);
ui = new UiManager(logic);
}
Expand Down

0 comments on commit 015004d

Please sign in to comment.