SL-15168 Reset title of guidebook when opening

meow-7.2.2
Andrey Kleshchev 2021-05-11 01:48:21 +03:00
parent 9dee16185a
commit e886a5e343
2 changed files with 13 additions and 2 deletions

View File

@ -51,6 +51,12 @@ BOOL LLFloaterHowTo::postBuild()
void LLFloaterHowTo::onOpen(const LLSD& key)
{
// LLFloaterHowTo is intended to be opened as a location specific guidebook
// with custom titles, reset the title, LLUrlFloaterDispatchHandler will
// set needed one later
// todo: make title into general parameter for LLFloaterWebContent
setTitle(getString("default_tittle"));
LLFloaterWebContent::Params p(key);
if (!p.url.isProvided() || p.url.getValue().empty())
{

View File

@ -3,7 +3,7 @@
legacy_header_height="18"
can_resize="false"
can_minimize="false"
can_close="false"
can_close="false"
height="525"
layout="topleft"
name="floater_how_to"
@ -14,4 +14,9 @@
width="310"
rel_x="-0.469309"
rel_y="-0.011166"
filename="floater_web_content.xml"/>
filename="floater_web_content.xml">
<floater.string
name="default_tittle">
WELCOME ISLAND GUIDEBOOK
</floater.string>
</floater>