Explicitly remove .completionSubscriptions

This commit is contained in:
1024jp 2020-12-05 17:34:43 +09:00
parent c388478318
commit 102b82256f

View File

@ -112,6 +112,7 @@ final class ProgressViewController: NSViewController {
super.viewDidDisappear()
self.progressSubscriptions.removeAll()
self.completionSubscriptions.removeAll()
}
@ -121,6 +122,8 @@ final class ProgressViewController: NSViewController {
/// Change the state of progress to finished.
func done() {
self.completionSubscriptions.removeAll()
if self.closesAutomatically {
return self.dismiss(self)
}