resource generator fix : destroy should remove code from menu settings