From 19bcdae6ac4946f1976c397ff36e920f79947239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Liru=20F=C3=A6rs?= Date: Sat, 28 Dec 2019 02:55:38 -0500 Subject: [PATCH] LineEditor: Automatically hide spell check separator when it's not in use That's the line that likes to linger beneath the menu, looking dumb so now it won't, yay! --- indra/llui/lllineeditor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/indra/llui/lllineeditor.cpp b/indra/llui/lllineeditor.cpp index 0f5c75e90..5df4c20be 100644 --- a/indra/llui/lllineeditor.cpp +++ b/indra/llui/lllineeditor.cpp @@ -181,7 +181,6 @@ LLLineEditor::LLLineEditor(const std::string& name, const LLRect& rect, // make the popup menu available LLMenuGL* menu = LLUICtrlFactory::getInstance()->buildMenu("menu_texteditor.xml", LLMenuGL::sMenuContainer); - menu->addSeparator(); //menu->setBackgroundColor(gColors.getColor("MenuPopupBgColor")); menu->setCanTearOff(FALSE); menu->setVisible(FALSE); @@ -3014,6 +3013,8 @@ void LLLineEditor::showContextMenu(S32 x, S32 y) // spell_check="true" in xui if (!mReadOnly && mSpellCheckable) { + constexpr auto spell_sep = "Spell Check Sep"; + menu->addSeparator(spell_sep); // search for word matches S32 wordStart = 0;