Skip to content

Commit

Permalink
Hide temp upload on SL
Browse files Browse the repository at this point in the history
  • Loading branch information
LiruMouse committed Mar 24, 2020
1 parent ee1baaf commit ac1ef4d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions indra/newview/llfloaterimagepreview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ BOOL LLFloaterImagePreview::postBuild()
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");
if (iface)
Expand Down Expand Up @@ -127,7 +128,11 @@ BOOL LLFloaterImagePreview::postBuild()

// <edit>
gSavedSettings.setBOOL("TemporaryUpload",FALSE);
childSetValue("temp_check",FALSE);
auto child = getChildView("temp_check");
if (grid.isSecondLife())
child->setVisible(false);
else
child->setValue(false);
// </edit>
}
else
Expand Down

0 comments on commit ac1ef4d

Please sign in to comment.