mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix EDU-577 Use correct way to determine study project
This commit is contained in:
+6
-2
@@ -73,8 +73,12 @@ class StudySwitchTaskPanelAction: AnAction() {
|
||||
}
|
||||
|
||||
override fun update(e: AnActionEvent?) {
|
||||
if (e != null) {
|
||||
StudyUtils.updateAction(e)
|
||||
val project = e?.project
|
||||
if (project != null && StudyUtils.isStudyProject(project)) {
|
||||
e?.presentation?.isEnabled = true
|
||||
}
|
||||
else {
|
||||
e?.presentation?.isEnabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user