mirror of
https://github.com/torproject/torbrowser-launcher.git
synced 2024-11-27 11:30:38 +00:00
Merge branch 'develop' of https://github.com/deskos-xp/torbrowser-launcher into deskos-xp-develop
This commit is contained in:
commit
1eee4dcdd1
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user