Properly hide and show nearby chat floater title according to docked state
parent
db24915ccf
commit
526eabaf73
|
|
@ -211,6 +211,9 @@ BOOL LLNearbyChat::postBuild()
|
|||
FSUseNearbyChatConsole = gSavedSettings.getBOOL("FSUseNearbyChatConsole");
|
||||
gSavedSettings.getControl("FSUseNearbyChatConsole")->getSignal()->connect(boost::bind(&LLNearbyChat::updateFSUseNearbyChatConsole, this, _2));
|
||||
|
||||
// <FS:Ansariel> Show window title according to docking state
|
||||
mDragHandle->setTitleVisible(gSavedSettings.getBOOL("ChatHistoryTornOff"));
|
||||
|
||||
return LLDockableFloater::postBuild();
|
||||
}
|
||||
|
||||
|
|
@ -739,10 +742,19 @@ void LLNearbyChat::setDocked(bool docked, bool pop_on_undock)
|
|||
{
|
||||
if((!isChatMultiTab()) && gSavedSettings.getBOOL("ChatHistoryTornOff"))
|
||||
{
|
||||
mDragHandle->setTitleVisible(docked); // <FS:Ansariel> Show window title according to docking state
|
||||
LLDockableFloater::setDocked(docked, pop_on_undock);
|
||||
}
|
||||
}
|
||||
|
||||
// <FS:Ansariel> Show window title according to docking state
|
||||
void LLNearbyChat::setTornOff(bool torn_off)
|
||||
{
|
||||
mDragHandle->setTitleVisible(torn_off);
|
||||
LLDockableFloater::setTornOff(torn_off);
|
||||
}
|
||||
// </FS:Ansariel> Show window title according to docking state
|
||||
|
||||
BOOL LLNearbyChat::getVisible()
|
||||
{
|
||||
if(isChatMultiTab())
|
||||
|
|
|
|||
|
|
@ -83,6 +83,7 @@ public:
|
|||
static bool isChatMultiTab();
|
||||
|
||||
void setDocked(bool docked, bool pop_on_undock = true);
|
||||
/*virtual*/ void setTornOff(bool torn_off); // <FS:Ansariel> Needed to show window title according to docking state
|
||||
|
||||
BOOL getVisible();
|
||||
void doSendMsg( std::string msg, EChatType type);
|
||||
|
|
|
|||
Loading…
Reference in New Issue