Commit 26b2bd9f authored by Arne Keller's avatar Arne Keller
Browse files

Fix incorrectly disabled buttons

If the last step is currently shown and the user switches to step 0,
the next/last buttons have to be re-enabled.
parent fbb80ae3
......@@ -165,7 +165,11 @@ public class TypeInferenceView extends VerticalLayout
if (currentStep == 0) {
controlPanel.setEnabledFirstStep(false);
controlPanel.setEnabledPreviousStep(false);
controlPanel.setEnabledNextStep(true);
controlPanel.setEnabledLastStep(true);
} else if (currentStep == unification.getStepCount() - 1) {
controlPanel.setEnabledFirstStep(true);
controlPanel.setEnabledPreviousStep(true);
controlPanel.setEnabledNextStep(false);
controlPanel.setEnabledLastStep(false);
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment