show sync username in prefs screen
This commit is contained in:
parent
f29a04ae29
commit
f64c07ca40
@ -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."""))
|
||||||
|
@ -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">
|
||||||
|
Loading…
Reference in New Issue
Block a user