
asciiwolf pushed to branch main at The Tor Project / Applications / torbrowser-launcher Commits: 6a0d6235 by BTD Master at 2025-09-27T10:12:08+01:00 fix: keep thread references - - - - - b44e2146 by asciiwolf at 2025-09-27T11:02:42+00:00 Merge branch 'keep-thread-references' into 'main' Keep thread references Closes #35 See merge request tpo/applications/torbrowser-launcher!34 - - - - - 1 changed file: - torbrowser_launcher/launcher.py Changes: ===================================== torbrowser_launcher/launcher.py ===================================== @@ -71,6 +71,7 @@ class Launcher(QtWidgets.QMainWindow): self.url_list = url_list self.force_redownload = False + self._threads = [] # This is the current version of Tor Browser, which should get updated with every release self.min_version = "13.0" @@ -350,9 +351,11 @@ class Launcher(QtWidgets.QMainWindow): t.progress_update.connect(progress_update) t.download_complete.connect(download_complete) t.download_error.connect(download_error) + self._threads.append(t) t.start() time.sleep(0.2) + def try_default_mirror(self): # change mirror to default and relaunch TBL self.common.settings["mirror"] = self.common.default_mirror @@ -420,6 +423,7 @@ class Launcher(QtWidgets.QMainWindow): t = VerifyThread(self.common) t.error.connect(error) t.success.connect(success) + self._threads.append(t) t.start() time.sleep(0.2) @@ -449,6 +453,7 @@ class Launcher(QtWidgets.QMainWindow): t = ExtractThread(self.common) t.error.connect(error) t.success.connect(success) + self._threads.append(t) t.start() time.sleep(0.2) View it on GitLab: https://gitlab.torproject.org/tpo/applications/torbrowser-launcher/-/compare... -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/torbrowser-launcher/-/compare... You're receiving this email because of your account on gitlab.torproject.org.
participants (1)
-
asciiwolf (@asciiwolf)