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
1 comment
Avatar
Permanently deleted user

Overriding method

public void update(AnActionEvent evt)

And calling
evt.getPresentation().setEnabled

0

Please sign in to leave a comment.