Toggle control_name in <floater/>'s like booleans for visibility, if they exist.

Look out for this in the UI Overhaul merge, this is gonna clash big time.
This commit is contained in:
Inusaito Sayori
2014-08-05 12:48:28 -04:00
parent 0cf16e6f8f
commit ce7d0e81bd

View File

@@ -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);
}