show sync username in prefs screen

This commit is contained in:
Damien Elmes 2013-10-04 06:09:36 +09:00
parent f29a04ae29
commit f64c07ca40
2 changed files with 9 additions and 0 deletions

View File

@ -83,11 +83,13 @@ class Preferences(QDialog):
if not self.prof['syncKey']:
self._hideAuth()
else:
self.form.syncUser.setText(self.prof.get('syncUser', ""))
self.connect(self.form.syncDeauth, SIGNAL("clicked()"),
self.onSyncDeauth)
def _hideAuth(self):
self.form.syncDeauth.setVisible(False)
self.form.syncUser.setText("")
self.form.syncLabel.setText(_("""\
<b>Synchronization</b><br>
Not currently enabled; click the sync button in the main window to enable."""))

View File

@ -243,6 +243,13 @@
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="syncUser">
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">