Skip to content

Commit

Permalink
Changed time of creation of the save folder
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffreywwang committed Mar 15, 2017
1 parent 126fb2f commit f7402a2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>WHS_planner</groupId>
<artifactId>WHS_Planner</artifactId>
<version>1.3.3</version>
<version>1.3.4</version>
<packaging>jar</packaging>

<name>WHS Planner</name>
Expand Down
12 changes: 7 additions & 5 deletions src/main/java/WHS_planner/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class Main extends Application {

public static final String SAVE_FOLDER = System.getenv("HOME") + File.separator + "Library" + File.separator + "Application Support" + File.separator + "WHS Planner";

public static final String VERSION_NUMBER = "1.3.3";
public static final String VERSION_NUMBER = "1.3.4";

public static final String UPDATE_NOTES = " - Added task editing support (Suggestion from Vincent Pak)\n - Added icons to make the app look better\n - iPass login should be fixed";

Expand All @@ -45,6 +45,11 @@ public static String getXorKey() {
* It initializes and runs the application!
*/
public static void main(String[] args) throws Exception {
File saveFolder = new File(SAVE_FOLDER);
if(!saveFolder.exists()) {
saveFolder.mkdir();
}

Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
public void run() {
mainPane.saveCalendar();
Expand All @@ -69,10 +74,7 @@ public void run() {
System.setProperty("http.agent", "Chrome");
// PropertyConfigurator.configure("log4j.properties");

File saveFolder = new File(SAVE_FOLDER);
if(!saveFolder.exists()) {
saveFolder.mkdir();
}


File keys = new File(Main.SAVE_FOLDER+ File.separator +"Keys");
if(!keys.exists()) {
Expand Down

0 comments on commit f7402a2

Please sign in to comment.