Fix highlighting of Radar and Snapshot toolbar buttons.

Thanks to Done Arun.
This commit is contained in:
Aleric Inglewood
2011-07-16 17:20:07 +02:00
parent 2eb64525ae
commit b6d5743ccb
5 changed files with 23 additions and 13 deletions

View File

@@ -2110,11 +2110,17 @@ void LLFloaterSnapshot::draw()
}
}
void LLFloaterSnapshot::onOpen()
{
gSavedSettings.setBOOL("SnapshotBtnState", TRUE);
}
void LLFloaterSnapshot::onClose(bool app_quitting)
{
gSnapshotFloaterView->setEnabled(FALSE);
// Set invisible so it doesn't eat tooltips. JC
gSnapshotFloaterView->setVisible(FALSE);
gSavedSettings.setBOOL("SnapshotBtnState", FALSE);
destroy();
}