Skip to content

Commit

Permalink
Add release notes to About dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
jonoomph committed Mar 19, 2023
1 parent cbda212 commit e8c5437
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/windows/about.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ def get_release_from_http(self):
else:
log.warning("Failed to find current release: %s" % r.status_code)
release_git_SHA = release_details.get("sha", "")
release_notes = release_details.get("notes", "")

# get translations
self.app = get_app()
Expand All @@ -211,8 +212,8 @@ def get_release_from_http(self):
log.warning("Official release detected with SHA (%s) for v%s" %
(release_git_SHA, info.VERSION))
build_name = build_name.replace("-candidate", "")
frozen_version_label = "<br/><br/><b>%s (Official)</b><br/>Build Date: %s" % \
(build_name, version_info.get('date'))
frozen_version_label = '<br/><br/><b>%s (Official)</b><br/>Release Date: %s<br><a href="%s" style="text-decoration:none;">Release Notes</a>' % \
(build_name, version_info.get('date'), release_notes)
else:
# Display current build name - unedited
log.warning("Build SHA (%s) does not match an official release SHA (%s) for v%s" %
Expand Down
3 changes: 3 additions & 0 deletions src/windows/ui/about.ui
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
<property name="textFormat">
<enum>Qt::RichText</enum>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
</widget>
</item>
<item>
Expand Down

0 comments on commit e8c5437

Please sign in to comment.