Skip to content

Commit

Permalink
Update version number to v1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ravern committed Oct 27, 2023
1 parent 31c3353 commit af90d30
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions src/main/java/seedu/address/MainApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*/
public class MainApp extends Application {

public static final Version VERSION = new Version(0, 2, 2, true);
public static final Version VERSION = new Version(1, 2, 1, true);

private static final Logger logger = LogsCenter.getLogger(MainApp.class);

Expand Down Expand Up @@ -68,9 +68,12 @@ public void init() throws Exception {
}

/**
* Returns a {@code ModelManager} with the data from {@code storage}'s address book and {@code userPrefs}. <br>
* The data from the sample address book will be used instead if {@code storage}'s address book is not found,
* or an empty address book will be used instead if errors occur when reading {@code storage}'s address book.
* Returns a {@code ModelManager} with the data from {@code storage}'s address
* book and {@code userPrefs}. <br>
* The data from the sample address book will be used instead if
* {@code storage}'s address book is not found,
* or an empty address book will be used instead if errors occur when reading
* {@code storage}'s address book.
*/
private Model initModelManager(Storage storage, ReadOnlyUserPrefs userPrefs) {
logger.info("Using data file : " + storage.getAddressBookFilePath());
Expand Down Expand Up @@ -127,7 +130,8 @@ protected Config initConfig(Path configFilePath) {
initializedConfig = new Config();
}

//Update config file in case it was missing to begin with or there are new/unused fields
// Update config file in case it was missing to begin with or there are
// new/unused fields
try {
ConfigUtil.saveConfig(initializedConfig, configFilePathUsed);
} catch (IOException e) {
Expand All @@ -137,7 +141,8 @@ protected Config initConfig(Path configFilePath) {
}

/**
* Returns a {@code UserPrefs} using the file at {@code storage}'s user prefs file path,
* Returns a {@code UserPrefs} using the file at {@code storage}'s user prefs
* file path,
* or a new {@code UserPrefs} with default configuration if errors occur when
* reading from the file.
*/
Expand All @@ -158,7 +163,8 @@ protected UserPrefs initPrefs(UserPrefsStorage storage) {
initializedPrefs = new UserPrefs();
}

//Update prefs file in case it was missing to begin with or there are new/unused fields
// Update prefs file in case it was missing to begin with or there are
// new/unused fields
try {
storage.saveUserPrefs(initializedPrefs);
} catch (IOException e) {
Expand Down

0 comments on commit af90d30

Please sign in to comment.