mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
When canceling the docker installer, reject the dialog immediately before quitting the threads, and try to gracefully quit the threads
This commit is contained in:
parent
329fa4639b
commit
b04b6ee96c
1 changed files with 5 additions and 4 deletions
|
@ -153,12 +153,13 @@ class DockerInstaller(QtWidgets.QDialog):
|
|||
subprocess.Popen(["open", "-a", "Docker.app"])
|
||||
|
||||
def cancel_clicked(self):
|
||||
if self.download_t:
|
||||
self.download_t.terminate()
|
||||
if self.install_t:
|
||||
self.install_t.terminate()
|
||||
self.reject()
|
||||
|
||||
if self.download_t:
|
||||
self.download_t.quit()
|
||||
if self.install_t:
|
||||
self.install_t.quit()
|
||||
|
||||
def start(self):
|
||||
if not os.path.isdir("/Applications/Docker.app"):
|
||||
self.download()
|
||||
|
|
Loading…
Reference in a new issue