/*
* Run UpdateChecker swingworker. done() will open LauncherUpdateDialog if needed
*/
final int beta_ = beta;
UpdateChecker updateChecker = new UpdateChecker(Constants.buildNumber, LaunchFrame.getInstance().minUsable, beta_) {
@Override
protected void done () {
try {
if (get()) {
LauncherUpdateDialog p = new LauncherUpdateDialog(this, LaunchFrame.getInstance().minUsable);
p.setVisible(true);
}
} catch (InterruptedException e) {
} catch (ExecutionException e) {
}
}
};
updateChecker.execute();
LoadingDialog.advance("Downloading pack data");
}