mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-10-06 07:27:56 +03:00
Explicitly remove .completionSubscriptions
This commit is contained in:
parent
c388478318
commit
102b82256f
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user