Diode question in my Arduino project...

The socket is so that the battery can be trickle charged in situ rather that used for power which is why I don't want it live all the time...