Set connected state at original place, so as to disable the client/server selection GUI when pressing a button.