mirror of
https://gitlab.com/kauron/jstudy
synced 2025-09-30 21:01:10 +02:00
Test: always show feedback and borderpane
This commit is contained in:
parent
7ec7494ea6
commit
7159d5a92b
3 changed files with 30 additions and 41 deletions
|
@ -31,7 +31,6 @@ public class TestController implements Initializable {
|
|||
|
||||
@Override
|
||||
public void initialize(URL url, ResourceBundle resourceBundle) {
|
||||
feedback.setVisible(false);
|
||||
}
|
||||
|
||||
void setList(List<TestItem> list) {
|
||||
|
@ -74,9 +73,7 @@ public class TestController implements Initializable {
|
|||
|
||||
@FXML
|
||||
private void onSkipAction(ActionEvent event) {
|
||||
feedback.setVisible(AppConfig.showFeedback);
|
||||
answer.setText("");
|
||||
if (current == -1) feedback.setVisible(false);
|
||||
int previous = current;
|
||||
while (list.size() > 1 && current == previous)
|
||||
current = (int) (Math.random() * list.size());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue