Option to disable the fallback to plain connection
When the TLS connection fails, gajim tries to fall back to a plain connection. It warns you and allows you to cancel the action, but there seems to be no option "don't use plain connection, don't ask me again and retry connecting later".
This behaviour would probably okay, but when the network connection fails, it does not detect the network failure directly, but first detects a TLS failure and asks if a plain connection should be used.
So there should be two improvements:
- Combobox for TLS: "force TLS", "when available", "never" instead of the fallback
- When TLS fails, test network before trying a plain connection. Or try a plain connection and only ask if it should be used, when TLS failed but plain worked (without sending data, yet)