Merge branch 'develop' of https://github.com/deskos-xp/torbrowser-launcher into deskos-xp-develop

This commit is contained in:
Micah Lee 2018-09-14 15:09:45 -07:00
commit 1eee4dcdd1
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -411,9 +411,10 @@ class Launcher(QtWidgets.QMainWindow):
def check_min_version(self):
installed_version = None
for line in open(self.common.paths['tbb']['changelog']).readlines():
if line.startswith('Tor Browser '):
installed_version = line.split()[2]
print(self.common.paths['tbb']['changelog'])
for line in open(self.common.paths['tbb']['changelog'],'rb').readlines():
if line.startswith(b'Tor Browser '):
installed_version = line.split()[2].decode()
break
if self.min_version <= installed_version: