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
parent 650047c043
commit 5cb1fbb7b6
Signed by untrusted user who does not match committer: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -4430,7 +4430,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: