Permalink
Browse files

You asked for it, here's Classic Search back!

  • Loading branch information...
Lirusaito committed Apr 23, 2017
1 parent a6236ab commit 8cea1705d1c4d32d8bf9932374cb787d461512e6
@@ -227,14 +227,14 @@ LLFloaterDirectory::LLFloaterDirectory(const std::string& name)
factory_map["people_panel"] = LLCallbackMap(createPeople, this);
factory_map["groups_panel"] = LLCallbackMap(createGroups, this);
factory_map[market_panel] = LLCallbackMap(LLPanelDirMarket::create, this);
factory_map["find_all_panel"] = LLCallbackMap(createFindAll, this);
factory_map["showcase_panel"] = LLCallbackMap(createShowcase, this);
if (secondlife)
{
factory_map["web_panel"] = LLCallbackMap(createWebPanel, this);
}
else
{
factory_map["find_all_panel"] = LLCallbackMap(createFindAll, this);
factory_map["find_all_old_panel"] = LLCallbackMap(createFindAllOld, this);
}
@@ -260,8 +260,11 @@ LLFloaterDirectory::LLFloaterDirectory(const std::string& name)
if (secondlife)
{
// Remove unused tabs
container->removeTabPanel(getChild<LLPanel>("find_all_panel"));
container->removeTabPanel(getChild<LLPanel>("find_all_old_panel"));
LLPanel* p = getChild<LLPanel>("find_all_panel");
container->removeTabPanel(p); // This should be at the end
p->setLabel(p->getString("classic_label")); // Give it a special label
container->addTabPanel(p, p->getLabel());
}
else
{
@@ -634,7 +637,7 @@ void LLFloaterDirectory::toggleFind(void*)
|| (inst.destinationGuideURL().empty() && panel == "showcase_panel"))
panel = "find_all_old_panel";
}
else if (panel == "find_all_panel" || panel == "find_all_old_panel") panel = "web_panel";
else if (panel == "find_all_old_panel") panel = "web_panel";
showPanel(panel);
@@ -72,6 +72,7 @@
<string name="not_found_text">
None Found.
</string>
<string name="classic_label" value="Classic"/>
<text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
bottom="-24" drop_shadow_visible="true" follows="left|top" font="SansSerif"
h_pad="0" halign="left" height="16" left="4" mouse_opaque="true"

0 comments on commit 8cea170

Please sign in to comment.