summaryrefslogtreecommitdiff
path: root/indra/newview/llfloateroutfitsnapshot.cpp
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2016-09-01 16:40:41 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2016-09-01 16:40:41 +0300
commit81b683f83b759e78d1e0b598e412d86991791d39 (patch)
tree3b61a762fd0aa520db01bfdfbf18677751eaec1a /indra/newview/llfloateroutfitsnapshot.cpp
parentac1f29a73c8cdaa5bd7bdc47fd4d2157a879f304 (diff)
MAINT-6686 FIXED [VOB] Outfit Snapshot floater should be resized independently of general Snapshot floater
Diffstat (limited to 'indra/newview/llfloateroutfitsnapshot.cpp')
-rw-r--r--indra/newview/llfloateroutfitsnapshot.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llfloateroutfitsnapshot.cpp b/indra/newview/llfloateroutfitsnapshot.cpp
index ca5a2fdad5..d80793f9e4 100644
--- a/indra/newview/llfloateroutfitsnapshot.cpp
+++ b/indra/newview/llfloateroutfitsnapshot.cpp
@@ -246,6 +246,8 @@ BOOL LLFloaterOutfitSnapshot::postBuild()
getChild<LLUICtrl>("auto_snapshot_check")->setValue(gSavedSettings.getBOOL("AutoSnapshot"));
childSetCommitCallback("auto_snapshot_check", ImplBase::onClickAutoSnap, this);
+ getChild<LLButton>("retract_btn")->setCommitCallback(boost::bind(&LLFloaterOutfitSnapshot::onExtendFloater, this));
+ getChild<LLButton>("extend_btn")->setCommitCallback(boost::bind(&LLFloaterOutfitSnapshot::onExtendFloater, this));
// Filters
LLComboBox* filterbox = getChild<LLComboBox>("filters_combobox");
@@ -277,6 +279,7 @@ BOOL LLFloaterOutfitSnapshot::postBuild()
impl->mPreviewHandle = previewp->getHandle();
previewp->setContainer(this);
impl->updateControls(this);
+ impl->setAdvanced(gSavedSettings.getBOOL("AdvanceOutfitSnapshot"));
impl->updateLayout(this);
previewp->mKeepAspectRatio = FALSE;
@@ -300,6 +303,7 @@ void LLFloaterOutfitSnapshot::onOpen(const LLSD& key)
gSnapshotFloaterView->adjustToFitScreen(this, FALSE);
impl->updateControls(this);
+ impl->setAdvanced(gSavedSettings.getBOOL("AdvanceOutfitSnapshot"));
impl->updateLayout(this);
LLPanel* snapshot_panel = getChild<LLPanel>("panel_outfit_snapshot_inventory");
@@ -308,6 +312,11 @@ void LLFloaterOutfitSnapshot::onOpen(const LLSD& key)
}
+void LLFloaterOutfitSnapshot::onExtendFloater()
+{
+ impl->setAdvanced(gSavedSettings.getBOOL("AdvanceOutfitSnapshot"));
+}
+
// static
void LLFloaterOutfitSnapshot::update()
{