that does the trick

that does the trick

That is all that was remaining or required to accomplish something. There, that does the trick. The engine should be as good as new, now! A: "I reset the breakers. Is the power coming back on?" B: "Yep, that did the trick!"
See also: does, that, trick