SL-14067 FIXED The 'Unable to Buy' (L$) error persists until relogin

master
Mnikolenko Productengine 2020-10-06 15:56:11 +03:00
parent f08421e651
commit 3c6237f4eb
3 changed files with 8 additions and 0 deletions

View File

@ -603,6 +603,11 @@ bool LLCurrencyUIManager::bought()
return impl.mBought;
}
void LLCurrencyUIManager::clearError()
{
return impl.clearError();
}
bool LLCurrencyUIManager::hasError()
{
return impl.mError;

View File

@ -80,6 +80,8 @@ public:
bool buying(); // are we in the process of buying?
bool bought(); // did the buy() transaction complete successfully
void clearError();
bool hasError();
std::string errorMessage();
std::string errorURI();

View File

@ -184,6 +184,7 @@ void LLFloaterBuyCurrencyUI::updateUI()
args["TITLE"] = getString("info_cannot_buy");
args["MESSAGE"] = mManager.errorMessage();
LLNotificationsUtil::add("CouldNotBuyCurrency", args);
mManager.clearError();
closeFloater();
}
else