mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed action update
This commit is contained in:
+2
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user