Fixing bugs with changelog fetching.

This commit is contained in:
Ad5001 2022-01-29 00:37:59 +01:00
parent d0fb6e9a3a
commit e384ec7929
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160

View file

@ -145,7 +145,7 @@ class Helper(QObject):
@Slot()
def fetchChangelog(self):
changelog_cache_path = path.join(path.dirname(path.realpath(__file__), "CHANGELOG.md"))
changelog_cache_path = path.join(path.dirname(path.realpath(__file__)), "CHANGELOG.md")
if path.exists(changelog_cache_path):
# We have a cached version of the changelog, for env that don't have access to the internet.
f = open(changelog_cache_path);
@ -154,5 +154,5 @@ class Helper(QObject):
else:
# Fetch it from the internet.
runnable = ChangelogFetcher(self)
^QThreadPool.globalInstance().start(runnable)
QThreadPool.globalInstance().start(runnable)