mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix EDU-679 do not show (1/1) in create answer placeholder dialog if only one hint available
This commit is contained in:
+6
-1
@@ -49,7 +49,12 @@ public class CCCreateAnswerPlaceholderPanel extends JPanel {
|
||||
}
|
||||
|
||||
private void updateHintNumberLabel() {
|
||||
myHintLabel.setText("Hints" + "(" + (myShownHintNumber + 1) + "/" + myHints.size() + "):");
|
||||
if (myHints.size() > 1) {
|
||||
myHintLabel.setText("Hint" + "(" + (myShownHintNumber + 1) + "/" + myHints.size() + "):");
|
||||
}
|
||||
else {
|
||||
myHintLabel.setText("Hint: ");
|
||||
}
|
||||
}
|
||||
|
||||
public void setAnswerPlaceholderText(String answerPlaceholderText) {
|
||||
|
||||
Reference in New Issue
Block a user