Hide temp upload on SL
This commit is contained in:
@@ -97,7 +97,8 @@ BOOL LLFloaterImagePreview::postBuild()
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
childSetLabelArg("ok_btn", "[UPLOADFEE]", gHippoGridManager->getConnectedGrid()->formatFee(LLAgentBenefitsMgr::current().getTextureUploadCost()));
|
auto& grid = *gHippoGridManager->getConnectedGrid();
|
||||||
|
childSetLabelArg("ok_btn", "[UPLOADFEE]", grid.formatFee(LLAgentBenefitsMgr::current().getTextureUploadCost()));
|
||||||
|
|
||||||
LLCtrlSelectionInterface* iface = childGetSelectionInterface("clothing_type_combo");
|
LLCtrlSelectionInterface* iface = childGetSelectionInterface("clothing_type_combo");
|
||||||
if (iface)
|
if (iface)
|
||||||
@@ -127,7 +128,11 @@ BOOL LLFloaterImagePreview::postBuild()
|
|||||||
|
|
||||||
// <edit>
|
// <edit>
|
||||||
gSavedSettings.setBOOL("TemporaryUpload",FALSE);
|
gSavedSettings.setBOOL("TemporaryUpload",FALSE);
|
||||||
childSetValue("temp_check",FALSE);
|
auto child = getChildView("temp_check");
|
||||||
|
if (grid.isSecondLife())
|
||||||
|
child->setVisible(false);
|
||||||
|
else
|
||||||
|
child->setValue(false);
|
||||||
// </edit>
|
// </edit>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user