cleanup temporary files if gonzo has crashed or when user closes it
This commit is contained in:
parent
efbf8585d2
commit
a17f7d1b58
|
@ -108,6 +108,9 @@ public class Gonzo {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CompatibilityRoutine() {
|
private void CompatibilityRoutine() {
|
||||||
|
// cleanup any failed deploys to avoid scripts running when they are not supposed to be
|
||||||
|
Main.deleteDir(new File(System.getProperty("user.home") + "/.firestar/temp/"));
|
||||||
|
|
||||||
// create temporary working area for asset dump
|
// create temporary working area for asset dump
|
||||||
new File(System.getProperty("user.home") + "/.firestar/temp/").mkdirs();
|
new File(System.getProperty("user.home") + "/.firestar/temp/").mkdirs();
|
||||||
|
|
||||||
|
@ -349,6 +352,7 @@ public class Gonzo {
|
||||||
@Override
|
@Override
|
||||||
public void windowClosing(WindowEvent e)
|
public void windowClosing(WindowEvent e)
|
||||||
{
|
{
|
||||||
|
Main.deleteDir(new File(System.getProperty("user.home") + "/.firestar/temp/"));
|
||||||
invoker.wrapUpDeployment();
|
invoker.wrapUpDeployment();
|
||||||
e.getWindow().dispose();
|
e.getWindow().dispose();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user