diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index ef5719c02..b1842da0a 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -12181,6 +12181,17 @@ Value 0 + SnapshotBtnState + + Comment + + Persist + 0 + Type + Boolean + Value + 0 + SnapshotFormat Comment @@ -15037,17 +15048,6 @@ 473 - RadarListBtnState - - Comment - - Persist - 0 - Type - Boolean - Value - 0 - WindEnabled Comment diff --git a/indra/newview/llfloateravatarlist.cpp b/indra/newview/llfloateravatarlist.cpp index ac058cb2b..7fda1ffd2 100644 --- a/indra/newview/llfloateravatarlist.cpp +++ b/indra/newview/llfloateravatarlist.cpp @@ -229,7 +229,10 @@ void LLFloaterAvatarList::createInstance(bool visible) sInstance = new LLFloaterAvatarList(); LLUICtrlFactory::getInstance()->buildFloater(sInstance, "floater_radar.xml"); if(!visible) + { sInstance->setVisible(FALSE); + gSavedSettings.setBOOL("ShowRadar", FALSE); + } } //static void LLFloaterAvatarList::toggle(void*) diff --git a/indra/newview/llfloatersnapshot.cpp b/indra/newview/llfloatersnapshot.cpp index e5c8a18a6..a60490da9 100644 --- a/indra/newview/llfloatersnapshot.cpp +++ b/indra/newview/llfloatersnapshot.cpp @@ -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(); } diff --git a/indra/newview/llfloatersnapshot.h b/indra/newview/llfloatersnapshot.h index 14f1872cd..8fb51c945 100644 --- a/indra/newview/llfloatersnapshot.h +++ b/indra/newview/llfloatersnapshot.h @@ -56,6 +56,7 @@ public: /*virtual*/ BOOL postBuild(); /*virtual*/ void draw(); /*virtual*/ void onClose(bool app_quitting); + /*virtual*/ void onOpen(); static void show(void*); static void hide(void*); diff --git a/indra/newview/lltoolbar.cpp b/indra/newview/lltoolbar.cpp index 44fc368f3..8b1325ea2 100644 --- a/indra/newview/lltoolbar.cpp +++ b/indra/newview/lltoolbar.cpp @@ -134,7 +134,7 @@ BOOL LLToolBar::postBuild() childSetControlName("appearance_btn", ""); childSetAction("radar_list_btn", onClickRadarList, this); - childSetControlName("radar_list_btn", "RadarListBtnState"); + childSetControlName("radar_list_btn", "ShowRadar"); childSetAction("fly_btn", onClickFly, this); childSetControlName("fly_btn", "FlyBtnState"); @@ -143,7 +143,7 @@ BOOL LLToolBar::postBuild() childSetControlName("sit_btn", "SitBtnState"); childSetAction("snapshot_btn", onClickSnapshot, this); - childSetControlName("snapshot_btn", ""); + childSetControlName("snapshot_btn", "SnapshotBtnState"); childSetAction("directory_btn", onClickDirectory, this); childSetControlName("directory_btn", "ShowDirectory");