Minor update

- Color changes
                                                             - More styles
                                                             - Wait for previous version to die to delete it when updating
This commit is contained in:
Gabriel Tofvesson 2016-11-14 21:59:13 +01:00
parent f3551e1d9b
commit 4404f599db

View File

@ -42,8 +42,8 @@ public class Main extends Application {
// Semantic versioning system data
public static final String semVerDevState = "PreDev"; // Development stage
public static final int semVerMajor = 0; // Major version
public static final int semVerMinor = 1; // Minor version
public static final int semVerPatch = 2; // Patch version
public static final int semVerMinor = 2; // Minor version
public static final int semVerPatch = 3; // Patch version
private double xOffset = 0, yOffset = 0; // Offsets for dragging
private static String[] args;
@ -184,9 +184,8 @@ public class Main extends Application {
public static void main(String[] args) throws Exception{
Main.args = args;
if (args.length > 0) {
Thread.sleep(50);
File f = new File(args[0]);
if (f.isFile()) f.delete(); // Delete previous jar
if (f.isFile()) while(!f.delete()) Thread.sleep(50); // Delete previous jar
}
launch(args);
}