Skip to content
Snippets Groups Projects
Commit 0896c1ed authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix broken button callback

parent f97f8a47
Branches
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
...@@ -1293,7 +1293,7 @@ void LLButton::setFloaterToggle(LLUICtrl* ctrl, const LLSD& sdname) ...@@ -1293,7 +1293,7 @@ void LLButton::setFloaterToggle(LLUICtrl* ctrl, const LLSD& sdname)
// Set the button control value (toggle state) to the floater visibility control (Sets the value as well) // Set the button control value (toggle state) to the floater visibility control (Sets the value as well)
button->setControlVariable(LLFloater::getControlGroup()->getControl(vis_control_name)); button->setControlVariable(LLFloater::getControlGroup()->getControl(vis_control_name));
// Set the clicked callback to toggle the floater // Set the clicked callback to toggle the floater
button->setClickedCallback([](LLUICtrl* ctrl, const LLSD& param) -> void { LLFloaterReg::toggleInstance(param.asStringRef(), LLSD()); }); button->setClickedCallback([=](LLUICtrl* ctrl, const LLSD& param) -> void { LLFloaterReg::toggleInstance(sdname.asStringRef(), LLSD()); });
} }
// static // static
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment