Email gateway interface usability improvements

- don't allow status request / settings unless registered already
- if registered, status request is the default selected option

Fixes #182
This commit is contained in:
mailchuck 2016-03-12 09:15:08 +01:00 committed by Peter Surda
parent 2adafdaadc
commit d8aa484b8c

View File

@ -4429,7 +4429,12 @@ class EmailGatewayDialog(QtGui.QDialog):
acct = accountClass(addressAtCurrentRow)
if isinstance(acct, GatewayAccount):
self.ui.radioButtonUnregister.setEnabled(True)
self.ui.radioButtonStatus.setEnabled(True)
self.ui.radioButtonStatus.setChecked(True)
self.ui.radioButtonSettings.setEnabled(True)
else:
self.ui.radioButtonStatus.setEnabled(False)
self.ui.radioButtonSettings.setEnabled(False)
self.ui.radioButtonUnregister.setEnabled(False)
label = shared.config.get(addressAtCurrentRow, 'label')
if label.find("@mailchuck.com") > -1: