Skip to content
Snippets Groups Projects
Commit 9a996978 authored by Vadim Savchuk's avatar Vadim Savchuk
Browse files

STORM-157 FIXED A tab might be highlighted while SB was collapsed.

Made sure that a tab can only be highlighted when sidebar is expanended.
parent e44011c3
No related branches found
No related tags found
No related merge requests found
...@@ -568,8 +568,9 @@ void LLSideTray::toggleTabButton(LLSideTrayTab* tab) ...@@ -568,8 +568,9 @@ void LLSideTray::toggleTabButton(LLSideTrayTab* tab)
{ {
LLButton* btn = it->second; LLButton* btn = it->second;
bool new_state = !btn->getToggleState(); bool new_state = !btn->getToggleState();
btn->setToggleState(new_state); btn->setToggleState(new_state);
btn->setImageOverlay( new_state ? tab->mImageSelected : tab->mImage ); // Only highlight the tab if side tray is expanded (STORM-157).
btn->setImageOverlay( new_state && !getCollapsed() ? tab->mImageSelected : tab->mImage );
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment