Cores/libs list are downloaded every time the windows is opened

This commit is contained in:
Federico Fissore 2015-03-12 11:33:25 +01:00
parent 251bb76ece
commit 33c26854a6
1 changed files with 7 additions and 9 deletions

View File

@ -182,14 +182,6 @@ public abstract class InstallerJDialog extends JDialog {
}
});
JButton updateButton = new JButton(_("Update list"));
updateButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent arg0) {
onUpdatePressed();
}
});
progressBox = Box.createHorizontalBox();
progressBox.add(progressBar);
progressBox.add(Box.createHorizontalStrut(5));
@ -199,7 +191,6 @@ public abstract class InstallerJDialog extends JDialog {
updateBox.add(Box.createHorizontalGlue());
updateBox.add(errorMessage);
updateBox.add(Box.createHorizontalGlue());
updateBox.add(updateButton);
}
{
@ -222,6 +213,13 @@ public abstract class InstallerJDialog extends JDialog {
InstallerJDialog.this.dispatchEvent(new WindowEvent(InstallerJDialog.this, WindowEvent.WINDOW_CLOSING));
}
});
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
onUpdatePressed();
}
});
}
public void setErrorMessage(String message) {