Hide the temp uploads checkbox when attempting to upload a very large image.

Cinders 2013-09-28 17:59:53 -06:00
parent f5c47249f8
commit 5cfd3c2e7d
2 changed files with 5 additions and 3 deletions

View File

@ -123,12 +123,13 @@ BOOL LLFloaterImagePreview::postBuild()
getChildView("lossless_check")->setEnabled(TRUE);
// <FS:CR> Temporary texture uploads
if (LLGlobalEconomy::Singleton::getInstance()->getPriceUpload() == 0
|| gAgent.getRegion()->getCentralBakeVersion() > 0)
BOOL enable_temp_uploads = (LLGlobalEconomy::Singleton::getInstance()->getPriceUpload() != 0
&& gAgent.getRegion()->getCentralBakeVersion() == 0);
if (!enable_temp_uploads)
{
gSavedSettings.setBOOL("TemporaryUpload", FALSE);
getChild<LLCheckBoxCtrl>("temp_check")->setVisible(FALSE);
}
getChild<LLCheckBoxCtrl>("temp_check")->setVisible(enable_temp_uploads);
// </FS:CR>
}
else

View File

@ -132,6 +132,7 @@ Try saving image as 24 bit Targa (.tga).
width="280" />
<check_box
control_name="TemporaryUpload"
visible="false"
follows="bottom|left"
height="16"
initial_value="false"