Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #154 from akrakovsky/bug_fixing
Browse files Browse the repository at this point in the history
Fix Issue #127
  • Loading branch information
leotilli committed Feb 3, 2015
2 parents 5930fac + a87c914 commit 8285361
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

package com.microsoftopentechnologies.intellij.wizards.createvm;

import com.intellij.openapi.application.Application;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.ui.wizard.WizardNavigationState;
import com.intellij.ui.wizard.WizardStep;
import com.microsoftopentechnologies.intellij.forms.ManageSubscriptionForm;
Expand Down Expand Up @@ -80,6 +78,8 @@ public JComponent prepare(WizardNavigationState wizardNavigationState) {

loadSubscriptions();

// model.getCurrentNavigationState().NEXT.setEnabled(false);

return rootPanel;
}

Expand All @@ -94,12 +94,8 @@ private void loadSubscriptions() {
model.setSubscription(subscriptions.get(0));
}

ApplicationManager.getApplication().invokeLater(new Runnable() {
@Override
public void run() {
model.getCurrentNavigationState().NEXT.setEnabled(!subscriptions.isEmpty());
}
});

model.getCurrentNavigationState().NEXT.setEnabled(!subscriptions.isEmpty());

} catch (AzureCmdException e) {
UIHelper.showException("Error retrieving subscription list", e);
Expand Down

0 comments on commit 8285361

Please # to comment.