Minor update
- Color changes - More styles - Wait for previous version to die to delete it when updating
This commit is contained in:
parent
f3551e1d9b
commit
4404f599db
@ -42,8 +42,8 @@ public class Main extends Application {
|
|||||||
// Semantic versioning system data
|
// Semantic versioning system data
|
||||||
public static final String semVerDevState = "PreDev"; // Development stage
|
public static final String semVerDevState = "PreDev"; // Development stage
|
||||||
public static final int semVerMajor = 0; // Major version
|
public static final int semVerMajor = 0; // Major version
|
||||||
public static final int semVerMinor = 1; // Minor version
|
public static final int semVerMinor = 2; // Minor version
|
||||||
public static final int semVerPatch = 2; // Patch version
|
public static final int semVerPatch = 3; // Patch version
|
||||||
|
|
||||||
private double xOffset = 0, yOffset = 0; // Offsets for dragging
|
private double xOffset = 0, yOffset = 0; // Offsets for dragging
|
||||||
private static String[] args;
|
private static String[] args;
|
||||||
@ -184,9 +184,8 @@ public class Main extends Application {
|
|||||||
public static void main(String[] args) throws Exception{
|
public static void main(String[] args) throws Exception{
|
||||||
Main.args = args;
|
Main.args = args;
|
||||||
if (args.length > 0) {
|
if (args.length > 0) {
|
||||||
Thread.sleep(50);
|
|
||||||
File f = new File(args[0]);
|
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);
|
launch(args);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user