mirror of
https://github.com/SKCraft/Launcher.git
synced 2024-11-24 12:16:28 +01:00
Fixed issue with update button always appearing.
This commit is contained in:
parent
11725c93da
commit
1c3b0a2722
@ -167,12 +167,14 @@ public class LauncherFrame extends JFrame {
|
||||
}
|
||||
|
||||
private void checkLauncherUpdate() {
|
||||
ListenableFuture<URL> future = launcher.getExecutor().submit(new LauncherUpdateChecker(launcher));
|
||||
ListenableFuture<URL> future = launcher.getExecutor().submit(new LauncherUpdateChecker(launcher));
|
||||
|
||||
Futures.addCallback(future, new FutureCallback<URL>() {
|
||||
@Override
|
||||
public void onSuccess(URL result) {
|
||||
requestUpdate(result);
|
||||
if (result != null) {
|
||||
requestUpdate(result);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -208,7 +210,6 @@ public class LauncherFrame extends JFrame {
|
||||
|
||||
ProgressDialog.showProgress(this, future, _("launcher.selfUpdatingTitle"), _("launcher.selfUpdatingStatus"));
|
||||
SwingHelper.addErrorDialogCallback(this, future);
|
||||
|
||||
} else {
|
||||
selfUpdateButton.setVisible(false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user