From ce7d0e81bd7d072a7415068bc40f9ffcf3e4741a Mon Sep 17 00:00:00 2001 From: Inusaito Sayori Date: Tue, 5 Aug 2014 12:48:28 -0400 Subject: [PATCH] Toggle control_name in 's like booleans for visibility, if they exist. Look out for this in the UI Overhaul merge, this is gonna clash big time. --- indra/llui/llfloater.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/indra/llui/llfloater.cpp b/indra/llui/llfloater.cpp index 16fb57c25..c8be07f43 100644 --- a/indra/llui/llfloater.cpp +++ b/indra/llui/llfloater.cpp @@ -571,6 +571,9 @@ void LLFloater::open() /* Flawfinder: ignore */ setVisibleAndFrontmost(mAutoFocus); } + if (!getControlName().empty()) + setControlValue(true); + onOpen(); } @@ -633,6 +636,9 @@ void LLFloater::close(bool app_quitting) } } + if (!app_quitting && !getControlName().empty()) + setControlValue(false); + // Let floater do cleanup. onClose(app_quitting); }