forked from openlp/openlp
Update the about dialog
This commit is contained in:
parent
4f0ee2b0d3
commit
9f83e8cfc2
File diff suppressed because it is too large
Load Diff
@ -51,18 +51,18 @@ class AboutForm(QtWidgets.QDialog, UiAboutDialog):
|
|||||||
"""
|
"""
|
||||||
self.setup_ui(self)
|
self.setup_ui(self)
|
||||||
application_version = get_version()
|
application_version = get_version()
|
||||||
about_text = self.about_text_edit.toPlainText()
|
about_text = self.about_text_edit.toHtml()
|
||||||
about_text = about_text.replace('<version>', application_version['version'])
|
about_text = about_text.replace('{{version}}', application_version['version'])
|
||||||
if application_version['build']:
|
if application_version['build']:
|
||||||
build_text = translate('OpenLP.AboutForm', ' build {version}').format(version=application_version['build'])
|
build_text = translate('OpenLP.AboutForm', ' build {version}').format(version=application_version['build'])
|
||||||
else:
|
else:
|
||||||
build_text = ''
|
build_text = ''
|
||||||
about_text = about_text.replace('<revision>', build_text)
|
about_text = about_text.replace('{{revision}}', build_text)
|
||||||
self.about_text_edit.setPlainText(about_text)
|
self.about_text_edit.setHtml(about_text)
|
||||||
self.volunteer_button.clicked.connect(self.on_volunteer_button_clicked)
|
self.volunteer_button.clicked.connect(self.on_volunteer_button_clicked)
|
||||||
|
|
||||||
def on_volunteer_button_clicked(self):
|
def on_volunteer_button_clicked(self):
|
||||||
"""
|
"""
|
||||||
Launch a web browser and go to the contribute page on the site.
|
Launch a web browser and go to the contribute page on the site.
|
||||||
"""
|
"""
|
||||||
webbrowser.open_new('http://openlp.org/en/contribute')
|
webbrowser.open_new('http://openlp.org/contribute')
|
||||||
|
Loading…
Reference in New Issue
Block a user