mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EDU-661 Adaptive Courses: disable Show hint button in Task view's toolbar
This commit is contained in:
+9
@@ -87,6 +87,15 @@ public class StudyShowHintAction extends StudyActionWithShortcut {
|
||||
|
||||
@Override
|
||||
public void update(@NotNull AnActionEvent e) {
|
||||
final Project project = e.getProject();
|
||||
if (project != null) {
|
||||
final Course course = StudyTaskManager.getInstance(project).getCourse();
|
||||
if (course != null && course.isAdaptive()) {
|
||||
e.getPresentation().setEnabled(false);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
StudyUtils.updateAction(e);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user