Just because it's plugged in doesn't mean that the battery isn't charged, I currently have my laptop plugged in right now, I can unplug it and still have power, some people keep it plugged in so they don't have to check the battery life
Also, you did say that it was because she flipped a switch, what does that switch connect to? It probably has no connection to the outlet that the laptop was connected to