StratDoc I would reflow the solder on the switch. those look like cold joints and could be the problem or cause problems later on.
It looks like someone tried fixing this already judging by the wrap around the wire. There could be a failure there. Those wires are small and brake easily. Replacing it would help stop this from happening later. Leave an little extra loop in the wire so you will have something to work with if it happens again. Just make sure the wire will not snag surrounding parts.
You could also test continuity on the switch and make sure the lever on the switch is adjusted properly so it registers when the glider is all the way back in.
You could also try disconecting at the plastic conecter and see if there is corrosion. It might be as simple as disconnecting and reconnecting a few times.