Application does not need restart for language change.

This commit is contained in:
Jindra Pet��k
2013-08-10 16:22:31 +02:00
parent 756150fc58
commit 12baee11b6
12 changed files with 69 additions and 17 deletions
@@ -286,6 +286,27 @@ public class Main {
return true;
}
}
public static void reloadApp(){
if(loadingDialog!=null){
loadingDialog.setVisible(false);
loadingDialog = null;
}
if(proxyFrame!=null){
proxyFrame.setVisible(false);
proxyFrame = null;
}
if(Main.file == null){
mainFrame.setVisible(false);
Helper.emptyObject(mainFrame);
Cache.clearAll();
System.gc();
mainFrame = null;
showModeFrame();
}else{
openFile(Main.file);
}
}
public static boolean openFile(String swfFile) {
if (mainFrame != null) {