Function Widget.isActionEnabled

override to change popup menu items state

bool isActionEnabled(
  const(Action) action
);