mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-14 11:29:26 +01:00
Cores/libs list are downloaded every time the windows is opened
This commit is contained in:
parent
251bb76ece
commit
33c26854a6
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user