fixed action update

This commit is contained in:
liana.bakradze
2015-09-18 16:14:16 +03:00
parent 3084a24112
commit a3a554f57f
@@ -55,9 +55,10 @@ public class StudyFillPlaceholdersAction extends AnAction {
StudyState studyState = new StudyState(studyEditor);
if (!studyState.isValid()) {
e.getPresentation().setEnabledAndVisible(false);
return;
}
TaskFile taskFile = studyState.getTaskFile();
if (taskFile == null || taskFile.getAnswerPlaceholders().isEmpty()) {
if (taskFile.getAnswerPlaceholders().isEmpty()) {
e.getPresentation().setEnabledAndVisible(false);
}
}