TreeMenu: fix edit-action's visibility