Feature Request/Bug Fix: On login, open Local Chat, Communicate, and Contacts if they were open last session.

This commit is contained in:
Inusaito Sayori
2014-04-21 18:31:41 -04:00
parent 4230127459
commit 4a3763d8d1
5 changed files with 27 additions and 9 deletions

View File

@@ -102,13 +102,6 @@ LLFloaterChat::~LLFloaterChat()
// Children all cleaned up by default view destructor.
}
void LLFloaterChat::setVisible(BOOL visible)
{
LLFloater::setVisible( visible );
gSavedSettings.setBOOL("ShowChatHistory", visible);
}
void LLFloaterChat::draw()
{
// enable say and shout only when text available
@@ -140,6 +133,11 @@ BOOL LLFloaterChat::postBuild()
return TRUE;
}
void LLFloaterChat::onOpen()
{
gSavedSettings.setBOOL("ShowChatHistory", true);
}
// public virtual
void LLFloaterChat::onClose(bool app_quitting)
{