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']: if not self.prof['syncKey']:
self._hideAuth() self._hideAuth()
else: else:
self.form.syncUser.setText(self.prof.get('syncUser', ""))
self.connect(self.form.syncDeauth, SIGNAL("clicked()"), self.connect(self.form.syncDeauth, SIGNAL("clicked()"),
self.onSyncDeauth) self.onSyncDeauth)
def _hideAuth(self): def _hideAuth(self):
self.form.syncDeauth.setVisible(False) self.form.syncDeauth.setVisible(False)
self.form.syncUser.setText("")
self.form.syncLabel.setText(_("""\ self.form.syncLabel.setText(_("""\
<b>Synchronization</b><br> <b>Synchronization</b><br>
Not currently enabled; click the sync button in the main window to enable.""")) Not currently enabled; click the sync button in the main window to enable."""))

View File

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