mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-09 10:50:42 +00:00
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.
This commit is contained in:
parent
fbb80ae3ad
commit
26b2bd9f00
@ -165,7 +165,11 @@ public class TypeInferenceView extends VerticalLayout
|
|||||||
if (currentStep == 0) {
|
if (currentStep == 0) {
|
||||||
controlPanel.setEnabledFirstStep(false);
|
controlPanel.setEnabledFirstStep(false);
|
||||||
controlPanel.setEnabledPreviousStep(false);
|
controlPanel.setEnabledPreviousStep(false);
|
||||||
|
controlPanel.setEnabledNextStep(true);
|
||||||
|
controlPanel.setEnabledLastStep(true);
|
||||||
} else if (currentStep == unification.getStepCount() - 1) {
|
} else if (currentStep == unification.getStepCount() - 1) {
|
||||||
|
controlPanel.setEnabledFirstStep(true);
|
||||||
|
controlPanel.setEnabledPreviousStep(true);
|
||||||
controlPanel.setEnabledNextStep(false);
|
controlPanel.setEnabledNextStep(false);
|
||||||
controlPanel.setEnabledLastStep(false);
|
controlPanel.setEnabledLastStep(false);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user