Just some small cleanup

meow-7.2.2
Ansariel 2016-08-08 15:19:55 +02:00
parent 39fccef2b2
commit fb2c85c3d6
1 changed files with 9 additions and 9 deletions

View File

@ -174,6 +174,15 @@ void LLPanelSnapshotInventory::onResolutionCommit(LLUICtrl* ctrl)
getChild<LLSpinCtrl>(getHeightSpinnerName())->setVisible(!current_window_selected);
}
// <FS:Ansariel> Store settings at logout
LLPanelSnapshotInventory::~LLPanelSnapshotInventory()
{
gSavedSettings.setS32("LastSnapshotToInventoryResolution", getImageSizeComboBox()->getCurrentIndex());
gSavedSettings.setS32("LastSnapshotToInventoryWidth", getTypedPreviewWidth());
gSavedSettings.setS32("LastSnapshotToInventoryHeight", getTypedPreviewHeight());
}
// </FS:Ansariel>
void LLPanelSnapshotInventoryBase::onSend()
{
if (mSnapshotFloater)
@ -216,12 +225,3 @@ void LLPanelOutfitSnapshotInventory::cancel()
mSnapshotFloater->closeFloater();
}
}
// <FS:Ansariel> Store settings at logout
LLPanelSnapshotInventory::~LLPanelSnapshotInventory()
{
gSavedSettings.setS32("LastSnapshotToInventoryResolution", getImageSizeComboBox()->getCurrentIndex());
gSavedSettings.setS32("LastSnapshotToInventoryWidth", getTypedPreviewWidth());
gSavedSettings.setS32("LastSnapshotToInventoryHeight", getTypedPreviewHeight());
}
// </FS:Ansariel>