1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-03-15 12:29:26 +01:00

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

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 = Box.createHorizontalBox();
progressBox.add(progressBar); progressBox.add(progressBar);
progressBox.add(Box.createHorizontalStrut(5)); progressBox.add(Box.createHorizontalStrut(5));
@ -199,7 +191,6 @@ public abstract class InstallerJDialog extends JDialog {
updateBox.add(Box.createHorizontalGlue()); updateBox.add(Box.createHorizontalGlue());
updateBox.add(errorMessage); updateBox.add(errorMessage);
updateBox.add(Box.createHorizontalGlue()); 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)); InstallerJDialog.this.dispatchEvent(new WindowEvent(InstallerJDialog.this, WindowEvent.WINDOW_CLOSING));
} }
}); });
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
onUpdatePressed();
}
});
} }
public void setErrorMessage(String message) { public void setErrorMessage(String message) {