res:dock:: fix global menu problem.

according to the requirement, hiding the menu after any operation.