File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
libraries/contributions/ui
packages/contributions/ui Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 36
36
import cc .arduino .ui .InstallerTableCell ;
37
37
import cc .arduino .utils .Progress ;
38
38
39
+ import javax .swing .*;
39
40
import java .awt .*;
40
41
import java .util .Collection ;
41
42
@@ -110,6 +111,15 @@ public void onProgress(Progress progress) {
110
111
setProgress (progress );
111
112
}
112
113
};
114
+
115
+ if (indexer .getIndex ().getLibraries ().isEmpty ()) {
116
+ SwingUtilities .invokeLater (new Runnable () {
117
+ @ Override
118
+ public void run () {
119
+ onUpdatePressed ();
120
+ }
121
+ });
122
+ }
113
123
}
114
124
115
125
public void setProgress (Progress progress ) {
Original file line number Diff line number Diff line change 36
36
import cc .arduino .ui .InstallerTableCell ;
37
37
import cc .arduino .utils .Progress ;
38
38
39
+ import javax .swing .*;
39
40
import java .awt .*;
40
41
import java .util .Collection ;
41
42
@@ -108,6 +109,15 @@ public void onProgress(Progress progress) {
108
109
setProgress (progress );
109
110
}
110
111
};
112
+
113
+ if (indexer .getIndex ().getPackages ().isEmpty ()) {
114
+ SwingUtilities .invokeLater (new Runnable () {
115
+ @ Override
116
+ public void run () {
117
+ onUpdatePressed ();
118
+ }
119
+ });
120
+ }
111
121
}
112
122
113
123
public void setProgress (Progress progress ) {
You can’t perform that action at this time.
0 commit comments