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:
Micah Lee 2020-02-07 15:36:21 -08:00
parent 329fa4639b
commit b04b6ee96c
No known key found for this signature in database
GPG key ID: 403C2657CD994F73

View file

@ -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()