Skip to content
Snippets Groups Projects
Commit 93ceec1b authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix places panel causing stutter on region crossing

parent d44e1c08
No related branches found
No related tags found
No related merge requests found
......@@ -377,6 +377,9 @@ BOOL LLPanelPlaces::postBuild()
LLButton* edit_btn = mLandmarkInfo->getChild<LLButton>("edit_btn");
edit_btn->setCommitCallback(boost::bind(&LLPanelPlaces::onEditButtonClicked, this));
mOptionLP = getChild<LLLayoutPanel>("lp_options");
mLayoutPanel2 = getChild<LLLayoutPanel>("lp2");
createTabs();
updateVerbs();
......@@ -1291,8 +1294,9 @@ void LLPanelPlaces::updateVerbs()
bool show_options_btn = is_place_info_visible && !is_create_landmark_visible && !isLandmarkEditModeOn;
mOverflowBtn->setVisible(show_options_btn);
getChild<LLLayoutPanel>("lp_options")->setVisible(show_options_btn);
getChild<LLLayoutPanel>("lp2")->setVisible(!show_options_btn);
mOptionLP->setVisible(show_options_btn);
mLayoutPanel2->setVisible(!show_options_btn);
if (is_place_info_visible)
{
......
......@@ -48,6 +48,7 @@ class LLTabContainer;
class LLToggleableMenu;
class LLMenuButton;
class LLLayoutStack;
class LLLayoutPanel;
typedef std::pair<LLUUID, std::string> folder_pair_t;
......@@ -116,6 +117,8 @@ class LLPanelPlaces : public LLPanel
LLLayoutStack* mFilterContainer;
LLPanelPlaceProfile* mPlaceProfile;
LLPanelLandmarkInfo* mLandmarkInfo;
LLLayoutPanel* mOptionLP = nullptr;
LLLayoutPanel* mLayoutPanel2 = nullptr;
LLToggleableMenu* mPlaceMenu;
LLToggleableMenu* mLandmarkMenu;
......
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