mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 08:40:47 +00:00
Application does not need restart for language change.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user