FIRE-17230: Notifications list floater should remember the last selected tab after a relog
parent
8fb02bcd6c
commit
ef0804c7d7
|
|
@ -1011,6 +1011,18 @@
|
|||
<integer>600</integer>
|
||||
</array>
|
||||
</map>
|
||||
|
||||
<key>FSLastNotificationsTab</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Stores the last selected tab in the notifications list floater</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>HideFromEditor</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>S32</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
</map>
|
||||
</llsd>
|
||||
|
|
|
|||
|
|
@ -69,6 +69,8 @@ BOOL LLFloaterNotificationsTabbed::postBuild()
|
|||
mNotificationsSeparator->initTaggedList(LLNotificationListItem::getTransactionTypes(), mTransactionMessageList);
|
||||
mNotificationsSeparator->initUnTaggedList(mSystemMessageList);
|
||||
mNotificationsTabContainer = getChild<LLTabContainer>("notifications_tab_container");
|
||||
// <FS:Ansariel> Remember last tab used
|
||||
mNotificationsTabContainer->selectTab(gSavedPerAccountSettings.getS32("FSLastNotificationsTab"));
|
||||
|
||||
mDeleteAllBtn = getChild<LLButton>("delete_all_button");
|
||||
mDeleteAllBtn->setClickedCallback(boost::bind(&LLFloaterNotificationsTabbed::onClickDeleteAllBtn,this));
|
||||
|
|
@ -117,6 +119,8 @@ void LLFloaterNotificationsTabbed::setSysWellChiclet(LLSysWellChiclet* chiclet)
|
|||
//---------------------------------------------------------------------------------
|
||||
LLFloaterNotificationsTabbed::~LLFloaterNotificationsTabbed()
|
||||
{
|
||||
// <FS:Ansariel> Remember last tab used
|
||||
gSavedPerAccountSettings.setS32("FSLastNotificationsTab", mNotificationsTabContainer->getCurrentPanelIndex());
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in New Issue