Added link to github into labelVersion in AboutDialog
This commit is contained in:
parent
62a930c374
commit
f3808212b5
|
@ -39,7 +39,7 @@
|
|||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string notr="true">PyBitmessage</string>
|
||||
<string notr="true"><html><head/><body><p><a href="https://github.com/Bitmessage/PyBitmessage/tree/:branch:"><span style="text-decoration:none; color:#0000ff;">PyBitmessage :version:</span></a></p></body></html></string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
|
|
|
@ -114,11 +114,15 @@ class AboutDialog(QtGui.QDialog, RetranslateMixin):
|
|||
super(AboutDialog, self).__init__(parent)
|
||||
widgets.load('about.ui', self)
|
||||
commit = paths.lastCommit()[:7]
|
||||
label = "PyBitmessage " + softwareVersion
|
||||
version = softwareVersion
|
||||
if commit:
|
||||
label += '-' + commit
|
||||
self.labelVersion.setText(label)
|
||||
QtGui.QWidget.resize(self, QtGui.QWidget.sizeHint(self))
|
||||
version += '-' + commit
|
||||
self.labelVersion.setText(
|
||||
self.labelVersion.text().replace(
|
||||
':version:', version
|
||||
).replace(':branch:', commit or 'v%s' % version)
|
||||
)
|
||||
self.labelVersion.setOpenExternalLinks(True)
|
||||
|
||||
|
||||
class IconGlossaryDialog(QtGui.QDialog, RetranslateMixin):
|
||||
|
|
Reference in New Issue
Block a user