Giant VMM merge, still need to compile it and fix llfloatermarketplacelistings
Merge VMM up to change 187902d9c4afd2990acddeb964c928179a52d189 mAllowWear=>mAllowOpen (should probably just remove this altogether though inventory_panels now accept the "show_root_folder", "allow_drop_on_root", "allow_open", and "use_marketplace_folders" attributes. Other stuff in this commit: LLPanelInjector~ Sync lltooldraganddrop to alchemy Sync notifications up with alchemy Reorganize notifications some, to better merge with upstream Remove duplicate InventorySortOrder in settings map There's a bit of a weird folderview merge mixed into here, I wouldn't trust it, but this thing is so god damn tangled I can't go back now~ Wouldn't have been possible without help from Shyotl and music by Amanda Palmer
This commit is contained in:
committed by
Lirusaito
parent
167d336274
commit
f140b4f35c
@@ -620,8 +620,10 @@ void check_merchant_status()
|
||||
{
|
||||
if (!gSavedSettings.getBOOL("InventoryOutboxDisplayBoth"))
|
||||
{
|
||||
// Hide both merchant related menu items
|
||||
gMenuHolder->getChild<LLView>("MerchantOutbox")->setVisible(FALSE);
|
||||
// Reset the SLM status: we actually want to check again, that's the point of calling check_merchant_status()
|
||||
LLMarketplaceData::instance().setSLMStatus(MarketplaceStatusCodes::MARKET_PLACE_NOT_INITIALIZED);
|
||||
|
||||
// Hide SLM related menu item
|
||||
gMenuHolder->getChild<LLView>("MarketplaceListings")->setVisible(FALSE);
|
||||
|
||||
// Also disable the toolbar button for Marketplace Listings
|
||||
@@ -630,9 +632,16 @@ void check_merchant_status()
|
||||
// Launch an SLM test connection to get the merchant status
|
||||
LLMarketplaceData::instance().initializeSLM(boost::bind(&set_merchant_SLM_menu));
|
||||
|
||||
// Launch a Merchant Outbox test connection to get the migration status
|
||||
LLMarketplaceInventoryImporter::instance().setStatusReportCallback(boost::bind(&set_merchant_outbox_menu, _1, _2));
|
||||
LLMarketplaceInventoryImporter::instance().initialize();
|
||||
// Do the Merchant Outbox init only once per session
|
||||
if (LLMarketplaceInventoryImporter::instance().getMarketPlaceStatus() == MarketplaceStatusCodes::MARKET_PLACE_NOT_INITIALIZED)
|
||||
{
|
||||
// Hide merchant outbox related menu item
|
||||
gMenuHolder->getChild<LLView>("MerchantOutbox")->setVisible(FALSE);
|
||||
|
||||
// Launch a Merchant Outbox test connection to get the migration status
|
||||
LLMarketplaceInventoryImporter::instance().setStatusReportCallback(boost::bind(&set_merchant_outbox_menu, _1, _2));
|
||||
LLMarketplaceInventoryImporter::instance().initialize();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8866,16 +8875,6 @@ class LLWorldEnableEnvSettings : public view_listener_t
|
||||
}
|
||||
};
|
||||
|
||||
bool canAccessMarketplace();
|
||||
class LLMarketplaceEnabled : public LLMemberListener<LLView>
|
||||
{
|
||||
bool handleEvent(LLPointer<LLOldEvents::LLEvent>, const LLSD& userdata)
|
||||
{
|
||||
gMenuHolder->findControl(userdata["control"].asString())->setValue(canAccessMarketplace());
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
class SinguCloseAllDialogs : public view_listener_t
|
||||
{
|
||||
bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
|
||||
@@ -9439,7 +9438,6 @@ void initialize_menus()
|
||||
addMenu(new LLWorldVisibleDestinations(), "World.VisibleDestinations");
|
||||
(new LLWorldEnvSettings())->registerListener(gMenuHolder, "World.EnvSettings");
|
||||
(new LLWorldEnableEnvSettings())->registerListener(gMenuHolder, "World.EnableEnvSettings");
|
||||
addMenu(new LLMarketplaceEnabled, "Marketplace.Enabled");
|
||||
|
||||
|
||||
// Tools menu
|
||||
|
||||
Reference in New Issue
Block a user