I am using a switchable dc jack to switch between dc power supply and battery. The problem im having is to be able to charge the battery with my 3s lipo charger. I drew a diagram to explain better. The dotted line is what im not sure about, cause if the dc jack is not plugged in, therefore the 2 bottom pins are closed, then the battery might ouput to its own charger. I know that a battery cant be charging and put out to a load at the same time, so would this circuit work or not? Any help would be greatly appreciated.

