Hide the temp uploads checkbox when attempting to upload a very large image.
parent
f5c47249f8
commit
5cfd3c2e7d
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue