Do not destroy the settings dialog when it is hidden.

That way the protocol widget stay filled.
And the state is kept