Skip to content

Commit 7a41763

Browse files
[Fix] Issue with install button
1 parent 572f690 commit 7a41763

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

mode/tools/SDKUpdater/src/processing/mode/android/tools/SDKUpdater.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import com.android.sdklib.tool.sdkmanager.SdkManagerCli;
3333

3434
import processing.app.Base;
35+
import processing.app.Messages;
3536
import processing.app.Preferences;
3637
import processing.app.tools.Tool;
3738
import processing.app.ui.Toolkit;
@@ -327,6 +328,12 @@ protected Object doInBackground() throws Exception {
327328
remotes.add(p);
328329
}
329330

331+
if (remotes.size() == 0) {
332+
actionButtonPlatform.setText("Install");
333+
Messages.showWarning("SDK Updater","No platform was selected");
334+
return null;
335+
}
336+
330337
remotes = InstallerUtil.computeRequiredPackages(
331338
remotes, mRepoManager.getPackages(), progress);
332339
if (remotes != null) {

0 commit comments

Comments
 (0)