Disable plugin action when no project open

Hi,
I want to disable my plugin action when no project is open.
How can I do this?

0
Avatar
Permanently deleted user

Overriding method

public void update(AnActionEvent evt)

And calling
evt.getPresentation().setEnabled

0

请先登录再写评论。