- fix indefinite progress bar when ZipExtension has been installed already

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9901 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
nor..67 2012-10-26 12:54:47 +00:00
parent d30f6fe686
commit 3da079251a

View File

@ -77,11 +77,11 @@ public class ZipExtensionTool {
}
public void install() {
ProgressHandle progressHandle = ProgressHandleFactory.createHandle("Installing " + extensionName + " data");
progressHandle.start();
if (new File(settingsFolder + File.separator + extensionName).exists()) {
return;
}
ProgressHandle progressHandle = ProgressHandleFactory.createHandle("Installing " + extensionName + " data");
progressHandle.start();
if (Utilities.isWindows()) {
extractToolsJava(packageName + "/" + extensionName + "-" + SUFFIX_WIN + ".zip", settingsFolder + File.separator + extensionName);
} else if (Utilities.isMac()) {