Fixed normal bug EXT-4915 (Duplicated "Buy" item in object context menu).

- Bug was caused by making "Take" menu item from object context menu consistent with the one from Build->Object menu where it was replaced by "Buy" when it was needed. But in object menu we already have "Buy" option at the bottom of the list so we don't need to hide "Take" and show "Buy" instead. Removed appearance of "Buy" instead of "Take" and made "Take" item's behaviour consistent with "Take" from object inspector gear menu.

Reviewed by Vadim Savchuk at https://codereview.productengine.com/secondlife/r/227/

--HG--
branch : product-engine
meow-7.2.2
Andrew Dyukov 2010-04-13 21:39:13 +03:00
parent 3a5ae14b85
commit 91e00620d8
1 changed files with 2 additions and 15 deletions

View File

@ -137,27 +137,14 @@
</menu_item_call>
</context_menu>
<menu_item_separator layout="topleft" />
<menu_item_call
label="Buy"
layout="topleft"
name="Pie Object Bye">
<menu_item_call.on_click
function="Tools.BuyOrTake"/>
<menu_item_call.on_visible
function="Tools.VisibleBuyObject"/>
<menu_item_call.on_enable
function="Tools.EnableBuyOrTake"/>
</menu_item_call>
<menu_item_call
label="Take"
layout="topleft"
name="Pie Object Take">
<menu_item_call.on_click
function="Tools.BuyOrTake"/>
<menu_item_call.on_visible
function="Tools.VisibleTakeObject"/>
function="Object.Take"/>
<menu_item_call.on_enable
function="Tools.EnableBuyOrTake"/>
function="Object.VisibleTake"/>
</menu_item_call>
<menu_item_call
enabled="false"