From ef0804c7d71ad017a90c59db081fd10c3ebb508a Mon Sep 17 00:00:00 2001 From: Ansariel Date: Fri, 6 Nov 2015 08:55:04 +0100 Subject: [PATCH] FIRE-17230: Notifications list floater should remember the last selected tab after a relog --- .../newview/app_settings/settings_per_account.xml | 14 +++++++++++++- indra/newview/llfloaternotificationstabbed.cpp | 4 ++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/indra/newview/app_settings/settings_per_account.xml b/indra/newview/app_settings/settings_per_account.xml index f7b70fcf54..173c7282e7 100755 --- a/indra/newview/app_settings/settings_per_account.xml +++ b/indra/newview/app_settings/settings_per_account.xml @@ -1011,6 +1011,18 @@ 600 - + FSLastNotificationsTab + + Comment + Stores the last selected tab in the notifications list floater + Persist + 1 + HideFromEditor + 1 + Type + S32 + Value + 0 + diff --git a/indra/newview/llfloaternotificationstabbed.cpp b/indra/newview/llfloaternotificationstabbed.cpp index 00279b2768..4c2629334e 100644 --- a/indra/newview/llfloaternotificationstabbed.cpp +++ b/indra/newview/llfloaternotificationstabbed.cpp @@ -69,6 +69,8 @@ BOOL LLFloaterNotificationsTabbed::postBuild() mNotificationsSeparator->initTaggedList(LLNotificationListItem::getTransactionTypes(), mTransactionMessageList); mNotificationsSeparator->initUnTaggedList(mSystemMessageList); mNotificationsTabContainer = getChild("notifications_tab_container"); + // Remember last tab used + mNotificationsTabContainer->selectTab(gSavedPerAccountSettings.getS32("FSLastNotificationsTab")); mDeleteAllBtn = getChild("delete_all_button"); mDeleteAllBtn->setClickedCallback(boost::bind(&LLFloaterNotificationsTabbed::onClickDeleteAllBtn,this)); @@ -117,6 +119,8 @@ void LLFloaterNotificationsTabbed::setSysWellChiclet(LLSysWellChiclet* chiclet) //--------------------------------------------------------------------------------- LLFloaterNotificationsTabbed::~LLFloaterNotificationsTabbed() { + // Remember last tab used + gSavedPerAccountSettings.setS32("FSLastNotificationsTab", mNotificationsTabContainer->getCurrentPanelIndex()); } //---------------------------------------------------------------------------------