Exemplo n.º 1
0
void LLFloaterOutbox::onOpen()
{
	//
	// Initialize the Market Place or go update the outbox
	//

	if (LLMarketplaceInventoryImporter::getInstance()->getMarketPlaceStatus() == MarketplaceStatusCodes::MARKET_PLACE_NOT_INITIALIZED)
	{
		initializeMarketPlace();
	}
	else
	{
		setupOutbox();
	}

	//
	// Update the floater view
	//
	updateView();

	//
	// Trigger fetch of outbox contents
	//
	fetchOutboxContents();
}
void LLFloaterMarketplaceListings::onOpen(/*const LLSD& key*/)
{
	//
	// Initialize the Market Place or go update the marketplace listings
	//
	if (LLMarketplaceData::instance().getSLMStatus() <= MarketplaceStatusCodes::MARKET_PLACE_CONNECTION_FAILURE)
	{
		initializeMarketPlace();
	}
	else
	{
		updateView();
	}
}