From f7402a2e3012e9107b0723913db6b49843adb654 Mon Sep 17 00:00:00 2001 From: Razer0901 Date: Wed, 15 Mar 2017 11:28:14 -0400 Subject: [PATCH] Changed time of creation of the save folder --- pom.xml | 2 +- src/main/java/WHS_planner/Main.java | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index fdad720..0c8bc6d 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ WHS_planner WHS_Planner - 1.3.3 + 1.3.4 jar WHS Planner diff --git a/src/main/java/WHS_planner/Main.java b/src/main/java/WHS_planner/Main.java index b066456..26dc52c 100644 --- a/src/main/java/WHS_planner/Main.java +++ b/src/main/java/WHS_planner/Main.java @@ -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"; @@ -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(); @@ -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()) {