The military had/has solar chargers for gen sets and trucks, for decades. They do not disconnect anything.
If you have a solar charger hooked up correctly, and the panel is exposed to the sun, how could the battery's become discharged? At least as long as the charger works and the battery's...