mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-03 00:29:21 +01:00
When the cores or libraries list are empty, they get automatically updated
This commit is contained in:
parent
357d5954c3
commit
5989bb400d
@ -36,6 +36,7 @@ import cc.arduino.ui.InstallerJDialog;
|
|||||||
import cc.arduino.ui.InstallerTableCell;
|
import cc.arduino.ui.InstallerTableCell;
|
||||||
import cc.arduino.utils.Progress;
|
import cc.arduino.utils.Progress;
|
||||||
|
|
||||||
|
import javax.swing.*;
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
@ -110,6 +111,15 @@ public class LibraryManagerUI extends InstallerJDialog {
|
|||||||
setProgress(progress);
|
setProgress(progress);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (indexer.getIndex().getLibraries().isEmpty()) {
|
||||||
|
SwingUtilities.invokeLater(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
onUpdatePressed();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProgress(Progress progress) {
|
public void setProgress(Progress progress) {
|
||||||
|
@ -36,6 +36,7 @@ import cc.arduino.ui.InstallerJDialog;
|
|||||||
import cc.arduino.ui.InstallerTableCell;
|
import cc.arduino.ui.InstallerTableCell;
|
||||||
import cc.arduino.utils.Progress;
|
import cc.arduino.utils.Progress;
|
||||||
|
|
||||||
|
import javax.swing.*;
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
@ -108,6 +109,15 @@ public class ContributionManagerUI extends InstallerJDialog {
|
|||||||
setProgress(progress);
|
setProgress(progress);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (indexer.getIndex().getPackages().isEmpty()) {
|
||||||
|
SwingUtilities.invokeLater(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
onUpdatePressed();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProgress(Progress progress) {
|
public void setProgress(Progress progress) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user