It might be inferred that she realizes that it is Boo who mended her pants and placed the presents in the tree. This must be interpreted by the reader. Scout does not understand what Boo is doing until Jem explains thinks.
SAME MY FREAKIN TEACHER IS MAKING ME ANSWER A BUNCH OF QUESTIONS FROM THE STUPID BOOK AS IF WE DONT ALREADY HAVE ENOUGH GOING ON IN OUR LIVES BECAUSE OF THE DUMB VIRUS