File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
mode/tools/SDKUpdater/src/processing/mode/android/tools Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 32
32
import com .android .sdklib .tool .sdkmanager .SdkManagerCli ;
33
33
34
34
import processing .app .Base ;
35
+ import processing .app .Messages ;
35
36
import processing .app .Preferences ;
36
37
import processing .app .tools .Tool ;
37
38
import processing .app .ui .Toolkit ;
@@ -327,6 +328,12 @@ protected Object doInBackground() throws Exception {
327
328
remotes .add (p );
328
329
}
329
330
331
+ if (remotes .size () == 0 ) {
332
+ actionButtonPlatform .setText ("Install" );
333
+ Messages .showWarning ("SDK Updater" ,"No platform was selected" );
334
+ return null ;
335
+ }
336
+
330
337
remotes = InstallerUtil .computeRequiredPackages (
331
338
remotes , mRepoManager .getPackages (), progress );
332
339
if (remotes != null ) {
You can’t perform that action at this time.
0 commit comments